-
Notifications
You must be signed in to change notification settings - Fork 19
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
Update for v5 of Redux-Persist #11
Comments
+1 for supporting v5. |
I’m taking a look into v5 |
How's the progress going? Thank You for such a wonderful library! |
Is there any improvement? 😞 |
+1 for v5 |
I'm not sure if this needs to up be updated to work with V5 of redux persist. I have been using redux-persist v5.9.1 with the latest version of redux-persist-transform-expire successfully. My config looks like this:
The creator of redux-persist has stated that there is no reason that this library should stop working because of the V5 release: rt2zz/redux-persist#508 (comment) If you are still having trouble let me know what is broken and I will try to submit a patch. |
Hi everyone! Apologies for the radio silence but I've been a bit busy on the work side. If anyone wants to put a PR together I'll be happy to merge. Otherwise, I'll try to pick this up next week. If you don't hear from me feel free to keep pinging me so I don't forget (but will try not to) |
+1 for v5 compatibility |
|
@leonardosul can you please share your reducer that has persistExpiresAt in it? What I am trying to accomplish is to treat my auth reducer, which has a jwt token, as a session. I'd like to expire the "session" after say 30 minutes, detect that change and redirect the user to the login view. |
Hey @appjitsu, this is what my reducer looked like for this particular use case:
I'm using moment.js to set the data to expire in 5 mins from "now". If you use a similar pattern but add 30 mins from now like this |
I ended up making/publishing my own transformer for my use case. Have a look if it helps anyone. |
I was wondering if this library was going to be/is compatible with redux-persist v5? I've downgraded to v4 for now.
The text was updated successfully, but these errors were encountered: