Redux Eggs: alternative for Redux Dynamic Modules #1809
Replies: 2 comments 7 replies
-
Hm, looking at the Redux Toolkit module, I have some serious concerns about the TypeScript types though - as using that approach essentially erases all information about middleware from the result, since the resulting Could this be implemented as a wrapper or store enhancer and thus have less influence on the types that way? As for usage, I can't really comment on that since I never had the need of splitting up Redux logic. |
Beta Was this translation helpful? Give feedback.
-
@fostyfost Interesting library and thank you. For example, here's my current createStore function for adding the RTK api middleware(s):
The redux eggs next/redux toolkit documentation means I must produce something like the below. Question is how to include api definitions with your eggs stuff? Is there an example for this scenario?
|
Beta Was this translation helpful? Give feedback.
-
Most likely
redux-dynamic-modules
is no longer supported.I could not find any other similar library.
Therefore, I created a library that makes it easy to dynamically add reducers and middleware to Redux store.
https://github.com/fostyfost/redux-eggs
I'm actively developing this library and it already has support for React (React Strict Mode is also supported), Next.js, Redux Toolkit, Redux and Redux-Saga.
You can also extend the functionality through the built-in extension mechanism.
It has a very small size and zero-dependencies and offers similar API to
redux-dynamic-modules
.I would be glad if Redux community pays attention to this library.
Beta Was this translation helpful? Give feedback.
All reactions