Skip to content

Commit 951d835

Browse files
authored
Update index.mdx
1 parent 3b60c95 commit 951d835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blog/2023-10-02-persisting-state/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const stateString = localStorage.getItem('some-state');
4040
// Create the state from the string (if it exists)
4141
const restoredState = stateString ? JSON.parse(stateString) : undefined;
4242

43-
const actor = createActor(machine, {
43+
const actor = createActor(someMachine, {
4444
// Restore the state (if it exists)
4545
state: restoredState,
4646
});

0 commit comments

Comments
 (0)