We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b60c95 commit 951d835Copy full SHA for 951d835
blog/2023-10-02-persisting-state/index.mdx
@@ -40,7 +40,7 @@ const stateString = localStorage.getItem('some-state');
40
// Create the state from the string (if it exists)
41
const restoredState = stateString ? JSON.parse(stateString) : undefined;
42
43
-const actor = createActor(machine, {
+const actor = createActor(someMachine, {
44
// Restore the state (if it exists)
45
state: restoredState,
46
});
0 commit comments