React Redux Tutorials - 9 - Multiple Reducers

preview_player
Показать описание

📱 Follow Codevolution


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

@codeevolution: I always feel to support you financially. But currently I'm searching for a job I dont have money right now. I will support you after I get a paid job. Thank you soooo sooo much. I guess you are the only one channel. Where I have commented. Thanks Vishwas.

rinapulli
Автор

i blew my interviewer's mind when i explained redux to him with cake and icecream example.

yummysoup
Автор

"cake reducer" was my nickname back when I was chubby

GooseGumlizzard
Автор

Fantastic tutorial so far ... surreal real world explanation of Redux. One caveat though: not for diabetic as it gives a subliminal urge to buy cakes and ice cream. :-)

arnelarnaldo
Автор

I am craving to have an ice-cream now !! Great explanation btw :)

abhinavsrivastava
Автор

how can I send data from one reducer to another? I appended the other reducer's data in one reducer but that is creating data redundancy. Can you suggest any other way?

eitisingh
Автор

you told in first lectures that there exist single object to hold all state then why are u making separate state object for ice cream ?

fazalurrehman
Автор

Question: You told that there can be only a single STORE in our app. Then how can there be two different objects for cakes and icecreams?

Did I missed out anything?

hetsuthar
Автор

at line 4 and 5, why did we initialize buy icecream and cake, is it necessary?

grenaleo
Автор

Do we need to make 2 separate initial state if we require multiple reducers?? (considering we are not separating them for easy readability/functionality separation)

harsh_garg
Автор

It works on decrement(when buying cake the number of cake decrease) but when trying to increment it malfunctions. Suppose numOfCakes-10 and when we buy it gives us 9 but when incrementing the number instead of giving 11 it gives us 101, 1011, 10111, 101111... Why? is it an intention bug?

sangtonsing
Автор

why use 'switch' statements instead of 'if' if its only one case anyway?

louie
Автор

I have one doubt ... Buycake and buy icecream use in same reducer.

mr_gamer
Автор

Also u dont need to have multiple reducers for the same context. Why a reducer for a cake n ice cream. U need to get ur basics right. The tutorial is about react redux so try to be in context of react than trying to use basic JS

hamlovingprophetpisslam
Автор

Doesn't this violate the principle of a single object tree for our state?

nineironshore
Автор

createStore can be made simpler by :
npm install redux
import { createStore } from 'redux'

abdulashique
Автор

this is good explanation however all redux logic is implement in one file is not a good practice

shahidhussain
Автор

Dude too much talking. A guy whose seeing these videos n no dumbs. They know basic programming n traverse the code. U don't need to revisit ur slides each n every time. Though the content is still basic n precise lacks enthusiasm. U need to pick up pace

hamlovingprophetpisslam
join shbcf.ru