Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
KamyarTaher authored Jul 27, 2024
1 parent 7de1ee7 commit 20a65c4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function ExampleComponent() {
'settings.theme'
);

const onClick = () => setDeep('user.profile2.name', 'John');
const onClick = () => setDeep('user.profile2.name', 'Jane');

return (
<div>
Expand Down Expand Up @@ -171,6 +171,11 @@ const { useSelectors, setDeep } = createStore(initialState, {
persist: persistConfig,
});

// You can set it to true if you want to persist the entire store.
const { useSelectors, setDeep } = createStore(initialState, {
persist: true,
});

```

## API Reference
Expand Down

0 comments on commit 20a65c4

Please sign in to comment.