RFC: A new library for data synchronization using redux-saga #2259
neurosnap
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all!
I've been developing a new data synchronization library built on top of redux-saga and got it to the point where I'd like to share it with others who also think that "redux-saga is the way."
https://github.com/neurosnap/saga-query
This library is a saga response to react-query, redux-toolkit/query, and similar cache synchronization libraries. Most of these libraries are reinventing the async flow control wheel of libraries with redux-saga with some niceties on top to make storing server state easier.
The goal of this library is to make it easier fetch data from an API but at a lower level it's a way to manage side-effects using an express-like middleware system using sagas.
You can see a production usage in this repo: https://github.com/neurosnap/listifi/blob/main/src/lists/effects.ts#L211-L479
I also wrote a blog article of my converting a traditional redux-saga application to using saga-query with favorable results. https://erock.io/2021/06/20/refactor-listifi-to-use-saga-query.html
I'd love to get feedback from the community on what you think about this library. In particular: would you use this library for your own projects? Why or why not?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions