redux-saga-thunk
Dispatching an action handled by redux-saga returns promise (by diegohaz)
redux-persist
persist and rehydrate a redux store (by rt2zz)
Our great sponsors
redux-saga-thunk | redux-persist | |
---|---|---|
1 | 33 | |
222 | 12,851 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | 3 months ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
redux-saga-thunk
Posts with mentions or reviews of redux-saga-thunk.
We have used some of these posts to build our list of alternatives
and similar projects.
-
It is possible to await redux saga from component
There are some hacky workarounds, such as putting a callback in the action object itself, and having the saga run that callback. That should be avoided, though. There are at least a couple packages that implement something that may work a bit better, like https://www.npmjs.com/package/@adobe/redux-saga-promise and https://github.com/diegohaz/redux-saga-thunk , but I haven't tried them.
redux-persist
Posts with mentions or reviews of redux-persist.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-02-17.
-
State Management Nx React Native/Expo Apps with TanStack Query and Redux
Storage: redux-persist, @react-native-async-storage/async-storage
- Redux 101
- Is there a way to store things even if the app closes?
-
Persisting state on page refresh in React/Redux app
Next, following their official document, I added some changes to my store.
-
20 Essential Parts Of Any Large Scale React App
redux-persist : For persisting data locally
- Should Firestore's cache be used for data persistence across sessions?
-
Async Storage or Redux-Persist? What do you prefer?
One thing to keep in mind with persisting data to a device is that you maybe have to run migrations on that data if your app starts to use that data differently. https://github.com/rt2zz/redux-persist/blob/master/docs/migrations.md
-
How I go with react native in late 2022
for most applications, AsyncStorage works fine. also, you can use it with redux-persist or persist middleware of zustand. in this way, you won't even need to touch the AsyncStorage. my first choice as a database (or just a persistor tool) is zustand and AsyncStorage. this combination can solve storage issues most of the time.
-
Redux Toolkit vs Old Redux
That is also admittedly not very smart. Maybe you only want to persist certain slices, maybe you need to do other things with it. That's why https://github.com/rt2zz/redux-persist and other similar addons exist.
- When using redux-persist, how to account for app updates where redux store structure changes?
What are some alternatives?
When comparing redux-saga-thunk and redux-persist you can also consider the following projects:
redux-axios-middleware - Redux middleware for fetching data with axios HTTP client
rtk-query - Data fetching and caching addon for Redux Toolkit