How to opt out persist on some values #2762
Unanswered
ImamJanjua
asked this question in
General
Replies: 1 comment 2 replies
-
You can use |
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
-
So I switched from having many store for each feature like userStore, cartStore ... to the recommended flux way so into having slices and single store. Now previously I could persist which store i wanted independently. So maybe one feature needed to be persisted and other not so it made all sense. But now as per the docs its recommended to only have the middleware on the main store.
Now the problem with me is that since when persisting data it will also seralize it. It works for the most data types but something like the Date object will be converted to a string and not be the same anymore. So my question if there is a way to not maybe persist some value is possible. Or maybe if provided by the lib use a different storing mechanism so that serialization problems not exsit.
Beta Was this translation helpful? Give feedback.
All reactions