What is combineReducers?

  Рет қаралды 3,091

Harry Wolff

Harry Wolff

Күн бұрын

Пікірлер: 13
@musangowope5556
@musangowope5556 4 жыл бұрын
Really dig your content man. Its always super revelant. Keep it up :)
@MrAlithom39
@MrAlithom39 4 жыл бұрын
Really good vid, I was looking for this exact info about slicing the state up.
@hswolff
@hswolff 4 жыл бұрын
slice n' dice every day
@ellsonmendesYT
@ellsonmendesYT 3 жыл бұрын
it really blown my mind :)
@rm_4848
@rm_4848 4 жыл бұрын
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-zm7li
@RAVISHANKAR-zm7li 4 жыл бұрын
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.
@rajashekhar433
@rajashekhar433 4 жыл бұрын
Webpack config + PWA please
@Dizzle0318
@Dizzle0318 4 жыл бұрын
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.deykun
@st.deykun 4 жыл бұрын
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.
@filcondrat
@filcondrat 4 жыл бұрын
didn't quite get - what is your option then
@Elduque40
@Elduque40 4 жыл бұрын
Redux is simple once you understand it, but it is way too boilerplate have and confusing for beginners ☹️.
@CarlLeatherbarrowsthelens
@CarlLeatherbarrowsthelens 4 жыл бұрын
Do you put this code on github?
@hswolff
@hswolff 4 жыл бұрын
It should be! Not sure if I put this one on there though...
What is Redux?
14:42
Harry Wolff
Рет қаралды 2,6 М.
I only ever use *these* RxJS operators to code reactively
25:25
Joshua Morony
Рет қаралды 139 М.
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 209 М.
What is Redux? Why use Redux?
8:45
CBT Nuggets
Рет қаралды 10 М.
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 579 М.
Redis Crash Course
27:31
Web Dev Simplified
Рет қаралды 664 М.
Don't Use React Context!! Use This instead
13:34
CoderOne
Рет қаралды 29 М.
RxJs switchMap vs mergeMap - Intro to Flattening Operators (2021)
25:44
Decoded Frontend
Рет қаралды 30 М.
Redux - Complete Tutorial (with Redux Toolkit)
37:01
Cosden Solutions
Рет қаралды 271 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 915 М.
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН