How to sync the state data saved in localstorage across all tabs using Ngxs
state management?
#1893
-
I am saving all data of the state after converting it to base64 format using Here is my code of
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
I have actually created a plugin which does this by virtue of messaging between the tabs instead of trying to save it to a common store since I don't think ngxs is supposed to dynamically load the state from the store if it is changed (i might be wrong about it though) I have created a demo for it here, and the source code is here. It is on npm under the name |
Beta Was this translation helpful? Give feedback.
-
@mahmudabir also check this discussion #793 it reference a blogpost that may help |
Beta Was this translation helpful? Give feedback.
@mahmudabir also check this discussion #793 it reference a blogpost that may help