diff --git a/README.md b/README.md index 0d430de..2d24276 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ function ExampleComponent() { 'settings.theme' ); - const onClick = () => setDeep('user.profile2.name', 'John'); + const onClick = () => setDeep('user.profile2.name', 'Jane'); return (
@@ -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