Skip to content
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

Documentation for Persistence and Rehydration #4345

Closed
OscarMpy opened this issue Apr 13, 2024 · 1 comment
Closed

Documentation for Persistence and Rehydration #4345

OscarMpy opened this issue Apr 13, 2024 · 1 comment

Comments

@OscarMpy
Copy link

Issue Description

The documentation on state persistence and rehydration use redux-persist as a reference, and there seems to be uncertainty around the maintenance of the redux-persist repository. As highlighted in rt2zz/redux-persist#1463, there are concerns that the repo is not actively managed, which may discourage its use in production environments.

Proposal for Redux Toolkit Documentation

Given that Redux Toolkit aims to provide a standard way to write Redux logic, it could be beneficial for the community if the documentation could include:

  • Updated guidance on state persistence and rehydration, possibly with maintained alternatives to redux-persist.
  • An assessment or recommendation about the viability of transitioning to alternatives like redux-remember, which was suggested by @wmonecke in the aforementioned issue.

Questions

  1. Are there any plans to update the Redux Toolkit documentation to reflect more current or actively maintained persistence solutions?
  2. Can the Redux Toolkit team provide insights or endorsements for libraries that might serve as suitable replacements for redux-persist?

Please don't misunderstand me, redux-persist works exceptionally well and has established a solid foundation; my concerns are on its reliability as a long-term solution.

@markerikson
Copy link
Collaborator

markerikson commented Apr 13, 2024

We try to limit the RTK docs to just material about the library itself (usage and API reference).

It might make sense to have a usage guide on persistence in the core docs, as the concepts apply whether you're using the original redux core library or RTK.

None of us maintainers actively use persistence ourselves, so our knowledge is limited here. That said, https://github.com/zewish/redux-remember seems like it's a more recent alternative to redux-persist (and I see you've seen that).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants