@netless/app-embedded-page-sdk
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "@netless/app-embedded-page-sdk", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"main": "dist/main.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/main.es.js", |
@@ -183,4 +183,6 @@ ## @netless/app-embedded-page-sdk | ||
const app = createEmbeddedApp<State, Message>({ count: 0 }); | ||
const app = await createEmbeddedApp<State, Message>(); | ||
app.ensureState({ count: 0 }); | ||
app.state; // => { count: 0 } | ||
@@ -187,0 +189,0 @@ app.setState({ count: 2 }); |
@@ -186,4 +186,6 @@ ## @netless/app-embedded-page-sdk | ||
const app = createEmbeddedApp<State, Message>({ count: 0 }); | ||
const app = await createEmbeddedApp<State, Message>(); | ||
app.ensureState({ count: 0 }); | ||
app.state; // => { count: 0 } | ||
@@ -190,0 +192,0 @@ app.setState({ count: 2 }); |
63191
211