Really dig your content man. Its always super revelant. Keep it up :)
@MrAlithom394 жыл бұрын
Really good vid, I was looking for this exact info about slicing the state up.
@hswolff4 жыл бұрын
slice n' dice every day
@ellsonmendesYT3 жыл бұрын
it really blown my mind :)
@rm_48484 жыл бұрын
These redux vids are a great way to understand what's actually happening. I guess it doesn't matter since you're rolling your own, but should the reducer args be reversed to match up with the current redux doc?
@RAVISHANKAR-zm7li4 жыл бұрын
In the combineReducers function, since we change the state directly, listeners are not getting triggered. On spreading the state in line 11 before passing, listeners are working as usual.
@rajashekhar4334 жыл бұрын
Webpack config + PWA please
@Dizzle03184 жыл бұрын
Loved your original useReducer video. Question. what can you do with a very complex reducer other than breaking it up? I have a very complex reducer/state flow that I would love to shorten up the reducer but don't see a good way to do so. for now it's just heavily commented. Rock on man. Love your videos ; ))
@st.deykun4 жыл бұрын
If you receive an array which you have to map in multiple states used in combineReducers It is probably better to do it one reducer. Otherwise, you would need to define and run the same loop in all of them. I had such case with an array of arrays and I replaced comibineReducer then - I believe that it is more DRY and faster that way, so sometimes combineReducer (from redux) is not the best option in my opinion, but i can imagne designing comibineReducer with global actions.
@filcondrat4 жыл бұрын
didn't quite get - what is your option then
@Elduque404 жыл бұрын
Redux is simple once you understand it, but it is way too boilerplate have and confusing for beginners ☹️.
@CarlLeatherbarrowsthelens4 жыл бұрын
Do you put this code on github?
@hswolff4 жыл бұрын
It should be! Not sure if I put this one on there though...