@satorijs/core
Advanced tools
Comparing version 3.6.2 to 3.6.3
@@ -183,3 +183,3 @@ import * as cordis from 'cordis'; | ||
constructor(config?: Context.Config); | ||
component(name: string, component: Component<this[typeof Context.session]>, options?: Component.Options): () => any; | ||
component(name: string, component: Component<this[typeof Context.session]>, options?: Component.Options): () => void; | ||
} | ||
@@ -186,0 +186,0 @@ export namespace Context { |
{ | ||
"name": "@satorijs/core", | ||
"description": "Core components of Satorijs", | ||
"version": "3.6.2", | ||
"version": "3.6.3", | ||
"type": "module", | ||
@@ -49,3 +49,3 @@ "main": "lib/index.cjs", | ||
"@satorijs/protocol": "^1.3.0-alpha.0", | ||
"cordis": "^3.13.0", | ||
"cordis": "^3.13.1", | ||
"cosmokit": "^1.5.2", | ||
@@ -52,0 +52,0 @@ "undios": "^0.3.0", |
@@ -146,8 +146,3 @@ import * as cordis from 'cordis' | ||
} | ||
const service = 'component:' + name | ||
this.provide(service) | ||
return this.effect(() => { | ||
this[service] = render | ||
return () => this[service] = null | ||
}) | ||
return this.set('component:' + name, render) | ||
} | ||
@@ -154,0 +149,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
100437
2137
Updatedcordis@^3.13.1