persistState() function not working for me #179
Unanswered
st-clair-clarke
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Is the data saved in local storage? How are you updating the data in store? If you listen for the source changes, do you get anything: persistState(store, {
key: 'pimRegistration',
storage: localStorageStrategy,
source: () => store.pipe(
tap(state => console.log('state changed', state))
),
}); Can you reproduce the issue on stackblitz? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Maybe it's not an issue with elf, but with the way you update your UI? Can you check the store state after reloading the page? Is it correct? You can use Redux DevTools extension with elf devtools for that. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following:
The repository updates and I can retrieved my states. However, when I input data in the UI and peform a page refresh, the UI data is NOT updated, although the data is still in the repo. What am I doing incorrectly?
Beta Was this translation helpful? Give feedback.
All reactions