Skip to content

Commit 5aaf3a8

Browse files
committed
fix(readme): imply getInitialState is a public api
1 parent 28c4527 commit 5aaf3a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ Zustand core can be imported and used without the React dependency. The only dif
228228
import { createStore } from 'zustand/vanilla'
229229

230230
const store = createStore((set) => ...)
231-
const { getState, setState, subscribe } = store
231+
const { getState, setState, subscribe, getInitialState } = store
232232

233233
export default store
234234
```

0 commit comments

Comments
 (0)