Redux Toolkit Tutorial - 20 - Configuring Store

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


📱 Follow Codevolution

Configuring Store with Redux Toolkit
Redux Toolkit Tutorial
Рекомендации по теме
Комментарии
Автор

just fantastic getting all the bits together with this redux series!

IamPetrus
Автор

Great stuff. Love your Rythm while teaching

Webbi_Trax
Автор

The best course on the topic - and I've seen them all 😆 I didn't regret one single minute! Thank you!!

philippaubert
Автор

although super awesome videos so far,
only, you haven't explain in 'cakeSlice' name convention with exports reducer and cakeActions is a bit confusing
and how we could have a default value for cake in createSlice for 'restocking' payload?

thanks and have a nice day :)

igihara
Автор

Request you to please make video on Redux Tool Kit + Nextjs + Redux Tool kit Query + Redux Persit. There is not video like this on youtube or web!
Thanks!

mohdsahil
Автор

I am getting the error as store.dispatch(ordered()) is not a function
Can anyone explain what is the issue?

vivekg
Автор

Привет из Росии, ты сильно помог с configureStore, ломал голову как его подключить вместо createStore. Спасибо!

Кек-яе
Автор

What is cakeActions here ??? anyone plzzz guide

jigarsiddhpura
Автор

Why are ou using moduleexports? Why not just export default ...?
Idk, it's just doesn't work. Imported things in this way says "it's not a funtion". There is not that problem with the regular "export default" and "export {}"

vladyslavstadnyk
Автор

Hello guys ... I'm following the same code as dear vishwas doing code in this video but ... I'm getting an error
Error: Cannot find module './features/cake/cakeSlice'

Please anyone help me

hafizehtisham
Автор

i dont now why the hell are u using Common js modules

mohammadkhayata
Автор

i keep getting this error while in this video
console.log('Initial state ', store.getState())

TypeError: store.getState is not a function
anyone got a solution ?

munyakathuo
Автор

:: Create Slice handles the boiler plate code
const cakeSlice = createSlice({ // RTK handles the state updation on your behalf
name: 'cake',
initialState,
reducers: {
ordered:(state) => {
state.numOfCake--
},
restocked: (state, action) => {
// create Slice wil make the Action creators name with the same
// name which we have written in the reducer function
// that is ordered and restocked
// We dont have to write it by hand

state.numOfCake += action.payload
}
}

})

rajit
join shbcf.ru