Question: Is it possible to perform the initialization of localStorageStrategy with the saved state data from HTTP response? #442
-
I am using 'localStorageStrategy' but I want to save the state on every change onto my server and use this saved state for initialization 'localStorageStrategy'. At the moment I just save the state (from local storage) on every change. And for initialization, I get data from the server on the application start and save it to localStorage right before the store is initialized. In this case, I already have data before calling Could you give me advice on how I can implement this behavior? The main reason is that I have to save the user state of some components on the server side. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can implement a custom StateStorage and do what you need. |
Beta Was this translation helpful? Give feedback.
You can implement a custom StateStorage and do what you need.