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
constProvider=({ children }: {children: ReactNode})=>{const[state,dispatch]=useMutativeReducer(reducer,initialState);return(<context.Providervalue={[state,dispatch]}>{children}</context.Provider>);};
I would like to use
mutative
-> https://github.com/mutativejs/use-mutativeuseMutativeReducer
to use and update the reducer for the contextThe reducer looks something like this:
Question
Is there any performance or possible breaking implementation issue by using something like this?
Immer
would be another example of this kind of library.The text was updated successfully, but these errors were encountered: