haapoints.blogg.se

Make visuals great again vs redux
Make visuals great again vs redux








make visuals great again vs redux make visuals great again vs redux

Instead of exporting each SliceAction directly from its respective slice file, each one of them must be centralized on the store index file and exported from there.įile: src/store/counterSlice.js import from counterSlice from "./counterSlice" ĬounterSliceReducer: counterSlice.reducer,Įxport const counterSliceActions = counterSlice.actions Įxport const authSliceActions = authSlice.actions Īfter organizing your files this way, you will see that now you have a perfect visibility over the action creator methods in your imported CaseReducerActions object (like authSliceActions or counterSliceActions, for example). Is just a matter or organizing your files and imports/exports in a specific way.

make visuals great again vs redux

I'm taking the same tutorial with the same profesor at Udemy. I just found the solution, experimenting with different ways or rearranging my files.










Make visuals great again vs redux