Skip to content

Commit

Permalink
Fix(readme.md) typo in Overwriting state example
Browse files Browse the repository at this point in the history
  • Loading branch information
jamsch authored Sep 5, 2020
1 parent e28e523 commit 7a2c7d4
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 @@ -125,7 +125,7 @@ import omit from "lodash-es/omit"
const useStore = create(set => ({
salmon: 1,
tuna: 2,
deleteEverything: () => set({ }), true), // clears the entire store, actions included
deleteEverything: () => set({ }, true), // clears the entire store, actions included
deleteTuna: () => set(state => omit(state, ['tuna']), true)
}))
```
Expand Down

0 comments on commit 7a2c7d4

Please sign in to comment.