Persist state is not loaded in the store after refresh. #415
Unanswered
boris-jenicek
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Try to reproduce it on stackblitz, please. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can you please point out what am i doing wrong?
I added this code below, and I see there is local storage being updated but after refresh it is not loaded back to store, I checking store state in dev tools redux and tried to console log state. Also, I have put a set timeout for several seconds to the API call. Anyway, after the page refresh, the store is empty until API call populates the store.
Not sure from the documentation if is there another step that I missing. Do I need manually query the local storage and set a new state after refresh?
Beta Was this translation helpful? Give feedback.
All reactions