Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukebrandonfarrell/redux-persist-machine
Fine-grained control over the persisting and rehydration of your redux store 🎰
https://github.com/lukebrandonfarrell/redux-persist-machine
async persist redux redux-middleware redux-persist rehydrate save stoarge store
Last synced: 26 days ago
JSON representation
Fine-grained control over the persisting and rehydration of your redux store 🎰
- Host: GitHub
- URL: https://github.com/lukebrandonfarrell/redux-persist-machine
- Owner: lukebrandonfarrell
- Created: 2019-01-16T11:52:07.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-25T00:11:19.000Z (over 2 years ago)
- Last Synced: 2024-09-16T13:34:27.416Z (about 2 months ago)
- Topics: async, persist, redux, redux-middleware, redux-persist, rehydrate, save, stoarge, store
- Language: JavaScript
- Homepage:
- Size: 337 KB
- Stars: 11
- Watchers: 5
- Forks: 4
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
redux-persist-machine provides a reliable way to rehydrate your state. The state can be rehydrated on a per reducer basis at any time in your application lifecycle.
- Load data conditionally with LOAD actions (e.g. only load orders from storage if the request to fetch them fails)
- Don't allow shape changes in your store to affect your data (each stored reducer will have its own key and loaded data is reassigned manually in each reducer)
- Define how your reducers receive and persist loaded data, allowing further customisation on when and how data is rehydrated through your application.[See our documentation](https://github.com/lukebrandonfarrell/redux-persist-machine/blob/master/docs/README.md).
## Motivation
#### Why not use redux-persist?
[redux-persist](https://github.com/rt2zz/redux-persist) is a well written library, with support for many storage engines, and transformers which allow for complex use cases.
redux-persist-machine gives you more control over how your data is loaded in your application; when your data is loaded, which data you want to save and load, and how your data is received / rehydrate by each reducer.
"From personal experience building many applications with redux and redux-saga I've found it's necessary to handle loaded data in your reducers in products with rapidly changing requirements to provide a reliable customer experience" -- Luke Brandon Farrell
There are many other options for persisting data, but if you want to provide an offline first experience, and control how your data is loaded into your application, then redux-persist-machine is the best option for you.
## Authors
* [**Luke Brandon Farrell**](https://lukebrandonfarrell.com/) - *Author*
## License
This project is licensed under the MIT License