This repository has been archived by the owner on Feb 4, 2022. It is now read-only.
v3.0 preview #135
Comments
👍 This could also make it easier to handle a cache type scenario. I'm trying to build something where an ajax request is made - if the data isn't posted, its persisted until a connection becomes available. Its proving crazy hard... |
|
@hitautodestruct not if your using something to compose it like; persistedState(
withLocalStorage(),
onlyPaths(/* array of paths to persist */)
) |
How about an array pattern?
|
Please see the |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Just a small comment of what I am thinking about for the upcoming v3.0 release of this plugin. As I noticed that many people have many use cases for this plugin, I'll came up with some sort of HoC or middleware pattern to chain different functionality;
This way, you can have an optimized plugin configuration for your specific use case (filtered paths, modify before persisting, cookies, localStorage, etc.). To be continued!
The text was updated successfully, but these errors were encountered: