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
Hello everyone.
I want use immer with your library. I using now it so. [constants.FETCH_CATEGORIES]: produce((draftState) => { setFetchCategoriesState(draftState, true)}),
But I think it incorrect. In the https://immerjs.github.io/immer/docs/example-reducer in the example produce function created once. In my example for each actionType i creating produce function. Could you explain me my example correct or no. And maybe i incorrect use immer with redux-actions?
Thanks for helping
The text was updated successfully, but these errors were encountered:
Hello everyone.
I want use immer with your library. I using now it so.
[constants.FETCH_CATEGORIES]: produce((draftState) => { setFetchCategoriesState(draftState, true)}),
[constants.FETCH_CATEGORIES_SUCCESS]: produce((draftState, { payload }) => { setFetchCategoriesState(draftState, false, payload); }),
But I think it incorrect. In the https://immerjs.github.io/immer/docs/example-reducer in the example produce function created once. In my example for each actionType i creating produce function. Could you explain me my example correct or no. And maybe i incorrect use immer with redux-actions?
Thanks for helping
The text was updated successfully, but these errors were encountered: