Skip to content

Commit

Permalink
fix(readme): imply getInitialState is a public api
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Jan 20, 2024
1 parent 28c4527 commit 5aaf3a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ Zustand core can be imported and used without the React dependency. The only dif
import { createStore } from 'zustand/vanilla'

const store = createStore((set) => ...)
const { getState, setState, subscribe } = store
const { getState, setState, subscribe, getInitialState } = store

export default store
```
Expand Down

0 comments on commit 5aaf3a8

Please sign in to comment.