Skip to content

Commit 05a69d3

Browse files
committed
Minor tweaks
1 parent 9f87770 commit 05a69d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const actor = createActor(machine, {
122122
actor.start();
123123
```
124124

125-
The actor will start at the `restoredState`, if it exists. If it is `undefined`, the actor will start at the initial state of the actor logic provided to `createActor(logic)`.
125+
The actor will start at the `restoredState`, if it exists. If `restoredState` is `undefined`, the actor will start at the initial state of the actor logic provided to `createActor(logic)`.
126126

127127
## Persistence strategies
128128

@@ -132,7 +132,7 @@ For the browser, you can:
132132
- Use a client-side database like [IndexedDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API)
133133
- Use [cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies)
134134
- Use [sessionStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage)
135-
- Store it in runtime memory (e.g., a global variable or some other persistent store)
135+
- Store the state in runtime memory (e.g., a global variable or some other persistent store)
136136

137137
For the server, you can:
138138

0 commit comments

Comments
 (0)