Redux Toolkit Tutorial - 13 - Immer

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


📱 Follow Codevolution

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

Awesome dude!!! Best frontend tutorial channel on youtube.

kedarpethe
Автор

Waiting for the next video on this series. Love this

anselmoribeiro
Автор

Everyone should like all the videos on this playlist

hellofriend
Автор

- a library
- we should never mutate the state & always return a new object that resembles the next state
- we done that with both 2 reducers. { ...oldState, changingPropert: newValue} <---new state.
(in the new - existing state is copied, only necessary property is updated)
- in real world, this will be complex, if it has nested levels.

- thus immer library comes to help these nested spreads.
- produce () method
- parameter 1. state, 2. a function which receives a draft copy of the state.
- immer allows us to update this draft state as if state is mutable.
- it simplifies handling the immutable data structures.
- it may look we are updating state directly, but under the hood it does same as our nested spreads...

vigneshgvs
Автор

Thanks, i fiinsh redux, react-redux, react-hooks, then i going to finish this course.

valp_co
Автор

at 3:59 i am getting undefined as the initial state but the updated state after the dispatch is working :/

patt
Автор

Error: Cannot find module 'immer', getting this error even after copying your github code as well.

alizain
Автор

hello, if i using this way bellow instead of immer:

(state, cb) => {
const data =
cb(data);
return data;
}

ABUTAHER-wggz
Автор

Vishwas sir, I saw size of Immerse package is even bigger than redux package, can we use something lighter than immer?

akshaygadekar
Автор

very cool. is the code somewhere? I looked around your github and couldn't find it

ast
Автор

whats the difference between immer produce and loaddash clonedeep

shishirrai
Автор

show us when to use redux in big project?

milon
Автор

Can you create one series or separate video with a redux toolkit with sagas as middleware? It will be helpful to us understand the concepts.

nimishbhardwaj
Автор

Ah ha! Vishwas slipped up. I know where he lives now. I'm gonna fly to Boston and thank him personally.

kainthjaskaran
Автор

A very comprehensive tutorial on using the Immer library to simplify the changing of state in the Redux store. Thanks, Vishwas

{2024-12-18}

Pareshbpatel
Автор

instead of immer can we do as follows:

state.address.street = ' new value'

return {...state}

???

kumailn
Автор

Follow you daily for your latest video

rajnandanibhawsar