ReactJS / Redux Tutorial - #5 Multiple Reducers

preview_player
Показать описание
In bigger Apps, you don't only have one Reducer. You have multiple Reducers. This video shows you how to combine multiple Reducers and use them in your Redux App.

This video is Part of the ReactJS / Redux Basics Series.

Рекомендации по теме
Комментарии
Автор

The most objective and functional tutorial about Redux ! Finally I can undestand how it works ! Thank you so much !

brunoborges
Автор

Clearest, most organized examples I've seen so far.

erickgeneric
Автор

This is the best Redux tut! Gosh! and it's being over 4 years! can't wrap my mind around it!

stanleyagwu
Автор

I wish more tutorials were like this. First going over what the native JavaScript way of doing things. Then, the possible assumptions beginners may have to a new framework/library. Then lastly, actually implementing a better way/ using built-in library/framework methods.

CknSalad
Автор

Was having problem understanding Redux with every tutorials that has been around in youtube. But not with yours.Yours one is best and easy to understand, still in 2019. I like the way how you explain everything clearly. Thanks Max. Really appreciate your work. Keep it up. Hope for more video tutorials from you.

ameetshrestha
Автор

The best coding channel on Youtube....Loved your content

hrishitasoni
Автор

I just wanted to say thank you so much, you explanation of redux is so easy to understand

westernmozilla
Автор

Thank you for the easy to understand tutorial!

basefocus
Автор

gracias poderosísimos anglo programadores, me ayudaron

estivenlaferre
Автор

Ok, officially subscribed. Love your videos.

MaxJacobson
Автор

Thanks, i love how you explain it without react first.
Everyone must whitelist this channel on AdBlock

SarKurd
Автор

I assume that the dispatch will cause every single combined reducer to reduce the incoming action.
Is this how the initial state is initialized also for "sub-states" that are not meant to any action?

Thanks for these videos, they're incredibly clear! I love the way you pronounce "typical" the german way, with the "y" sounding like a "ü" :D

tmdp
Автор

Nice videos, as always. New requirement : the ADD operation should only work if the user's age is above 18, and does nothing otherwise. Now, the math reducer needs access to the user's age. What's the best way to approach this kind of things?

xavierdupont
Автор

I am a moth and I am really scared of the reducer he is building.. :D

sumitpatil
Автор

Nice one! Fantastic tutorial just one confusing issue?... at time index 5:40 where you say "the names for the action should be used once" it sounds like you are saying when you dispatch an action use the name once! Can you just clarify that what you mean, is the names for the actions should be unique across multiple reducers so that when an action is dispatched then the store will know which reducer is meant to handle that particular action, in other words when you have multiple reducers the actions they have should be unique.? Thanks

ShadowsOfTheBeast
Автор

What if there were add action in both reducer.Will they still work?Will there a clash between reducers?

shk
Автор

And again, what's the problem with creating the state outside of the method call? to save a couple of lines you made your code less readable. Always follow the 4 principles of clean code.

metitusable
Автор

Thanks for video Max!! Is there any way so that we can dispatch an action and it will go in particular reducer bypassing every other reducer. I think no. If no there must be one single big switch block somewhere which is taking an action name as key to search.

akashbhandwalkar
Автор

So we can only have one store, but with multiple reducers?

paoloose
Автор

I understand that the actions should be uniquely named, but how does redux know which reducer to use? I am confused.

TheEricBrian