You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do have an understanding that accessing Redux store using Redux's store instance is possible, but can I use Zustand Store as a middleware in Redux's createStore, so that I can use both these stores together, till the whole app can be migrated to Zustand.
For now accessing most of my Redux Store data, I need to either pass it as params, or the other way I can think of is using the store instance itself, as in store.getState().state etc.
Please let me know if there is any better idea around this?? Supporting Zustand stores as a middleware to Redux, can also allow us to use Redux-Thunk Dispatch calls inside the Zustand store itself, instead of passing dispatch method as a param.
P.S.: This is all due to compatibility issues at the time for migrating the app.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I do have an understanding that accessing Redux store using Redux's
store
instance is possible, but can I use Zustand Store as a middleware in Redux'screateStore
, so that I can use both these stores together, till the whole app can be migrated to Zustand.For now accessing most of my Redux Store data, I need to either pass it as params, or the other way I can think of is using the
store
instance itself, as instore.getState().state
etc.Please let me know if there is any better idea around this?? Supporting Zustand stores as a middleware to Redux, can also allow us to use Redux-Thunk Dispatch calls inside the Zustand store itself, instead of passing
dispatch
method as a param.P.S.: This is all due to compatibility issues at the time for migrating the app.
Beta Was this translation helpful? Give feedback.
All reactions