-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v5 version #33
Comments
Its not clear yet how we will handle immutable integration with redux-persist v5. Open to suggestion, but we want to wait to add the necessary hooks until the v5 api is solidified. |
It would be great if the various derivative products could be kept in step. e.g. I need this (my top level state is an immutable Map containing Maps for each of the reducers in the app), but I would also like the migrate capabilities as described in issue 28. |
Any upadates? |
Nothing yet, but I will say this: |
I agree, I wanted manly that PersistGate component for React which is coming with v5, is it possible to to add that component to this repo? |
No unfortunately that requires some fundamental changes (storing persistence state in.. state) and was a major motivation for v5 :) redux-persist-transform-immutable will still work, just not top level immutable :/ |
I understand thank you for clarify things for me I will stick to v4 for now, I hope you will upgrade this repo to v5 soon... :) |
+1 for proper immutable support on v5 |
Would love to have v5 support as well, thanks for all the hard work |
Has there been any more thought on this? I'd like to migrate to |
It has been three months so I guess I'll bump this. Any thoughts on upgrading this to v5. I use Rematch with Immutable JS and rematch is only compatible with redux-persist v5. |
It's worth noting that you can upgrade to
From my perspective, there's really no downside to this approach. You need less dependencies, and you don't lose anything important. Ditching I'd actually say @rt2zz could deprecate this library, and simply document how to move away from it, and that would solve this issue. |
@ezzatron thanks for the advice. I will look into refactoring my project to no longer use an ImmutableJS object as the top-level store. However, for me and others, it may turn out that refactoring the store is not feasible. Also, it seems the authors at Redux.org recommend making the entire Redux state tree an ImmutableJS object. That is just one opinion, but it is a worthy opinion to consider. For all of these reasons, I would strongly consider not deprecating this library, or at least forging a path to using |
@taranda None of that doc is written by Dan, just in case 😛 |
@jeremejevs Fair enough. I'll edit my comment. :) |
@ezzatron unfortunately it's not that easy for us, and I imagine it's the same for others: we have a massive codebase, and because of ImmutableJS's nature, it has become pervasive in our project. Removing |
What if we added a config to redux-persist's |
@taranda As I understand it, the problem isn't with combining reducers so much as with I have a workaround that seems to work, although it's probably not optimal (haven't tested performance or anything):
The idea behind the EDIT: the above doesn't actually work; it still makes some things objects. That being said, it would definitely be good to have actual support for Immutable; it would probably require parameterizing a bunch of things like getting/setting/merging. |
I did something on the weekends; |
@OneStromberg I'm using your version, seems to work pretty decent. Any plans on creating a PR of your work? Otherwise, any good way to add issues to your repository? |
@jgadelange PR is made, this project looks abandoned, so my PR is not moving. |
Ah I see. Maybe enable issues in your fork? I think discussing the problem I'm having in this issue is not the best place. So I will describe it here and if we have another place where I can move it I will do that ;) Problem description moved to: helloheartteam#4 |
Will there be a branch for redux-persist v5? Could this be accomplished by simply updating the dependency?
The text was updated successfully, but these errors were encountered: