React Redux Update State Immutable way Tutorial | Part - 4

  Рет қаралды 52,911

techsith

techsith

Күн бұрын

Пікірлер: 86
@ziedhosni7655
@ziedhosni7655 5 жыл бұрын
this short format is the best , thank you again
@fakhruddin746
@fakhruddin746 4 жыл бұрын
I used to learn new tech with your video. Which are really helpful. Keep posting for us .
@13Macke37
@13Macke37 6 жыл бұрын
Why do we have to copy the state in the reducer on every action when we created a newState variable?
@maramahmad4061
@maramahmad4061 4 жыл бұрын
thank you for your effort it is the best series Please GO AHEAD to learn more from you
@Raj9x7
@Raj9x7 3 жыл бұрын
surprisingly this tutorial makes redux now so easy. Thank you.
@yourbrother9518
@yourbrother9518 2 жыл бұрын
Thanks a lot sir you made my day. I was strugling from 3 days and eventually you solved my problem. Many thanks Stay safe and happy.
@brindch8372
@brindch8372 6 жыл бұрын
Efficient explanation! Thank you so much! Btw, Just to share somethin and also to practice, I add another action which is 'CLEAR_HISTORY' to clear all history.
@learnkidsonline9732
@learnkidsonline9732 2 жыл бұрын
Superb explanation! Great teaching skills!!!!!I am a big fan of you!!!
@ruchirai5775
@ruchirai5775 5 жыл бұрын
Sir, Before looking at your tutorial Instead of redux I chose mobx because I got scared of redux :) But now I am able to write redux Flawlessly !Thank you for all your videos ! Can you please make a video on webpack, writing own webpack.Why webpack not grunt and gulp
@Techsithtube
@Techsithtube 5 жыл бұрын
Webpack is much comprehensive it does lot of thing compare to grunt which only allows you to write script.
@sachinsehgal7096
@sachinsehgal7096 4 жыл бұрын
@@Techsithtube yes sir, request you to share a video on Webpack too
@rajeshkanna9502
@rajeshkanna9502 2 жыл бұрын
I love the thumbnails
@nileshsolankar227
@nileshsolankar227 3 жыл бұрын
Best One..Nicely Explained Sir. Thank you very much.
@Techsithtube
@Techsithtube 3 жыл бұрын
You are most welcome. Thanks for watching!
@patrycjaadamczyk4521
@patrycjaadamczyk4521 5 жыл бұрын
Thanks for this series, it helps a lot to understad what really redux is about.
@akashgupta4456
@akashgupta4456 5 жыл бұрын
Superb !!! Really appreciate your effort, Sir
@Techsithtube
@Techsithtube 5 жыл бұрын
Akash, Thanks for a nice comment
@HoangVu-lr8mh
@HoangVu-lr8mh 4 жыл бұрын
Many thanks for your video. But I'm slightly confused at 12:46, why inside onClick event we would use an arrow function instead of calling this.props.onDelitem(el.id) ? I'm really looking forward to your answer.
@Techsithtube
@Techsithtube 4 жыл бұрын
If you dont need to pass any parameters you can simply use this.props.onDelitem , as you can see we are not executing the function here. but if you want to pass a parameter you have to execute the function. so you have to use an arrow function and inside you execute the funcction so on the click event the callback function gets executed and then the onDelItem gets executed.
@burningraven06
@burningraven06 6 жыл бұрын
Hi, Is there anyway to update the InitialStore?
@SunilSingh-vt2pw
@SunilSingh-vt2pw 5 жыл бұрын
Hi Sir, There is an error in this tutorial in a switch condition because control never goes to break if you will use return.
@Techsithtube
@Techsithtube 5 жыл бұрын
That is true. thanks for pointing it out.
@ThePodda33
@ThePodda33 4 жыл бұрын
your basecode in your repo no longer works i get a TypeError: Cannot read property 'age' of undefined when trying to run the app
@vishwanatheswarakrishnan7279
@vishwanatheswarakrishnan7279 6 жыл бұрын
Very comprehensive video ! Very nice ...
@patilmrugesh
@patilmrugesh 5 жыл бұрын
Very well explained Great job! Truly appreciate
@Techsithtube
@Techsithtube 5 жыл бұрын
Thanks for watching Mrugesh!
@davinci3890
@davinci3890 4 жыл бұрын
for the history, array spread could have perhaps being used right? Like 'history: [...state.history, newValue]'
@abhayagarwal5097
@abhayagarwal5097 4 жыл бұрын
Thks a lot man,I learned basics of redux in a day because of you :-) and these vids are teaching me a lot of useful stuff
@Techsithtube
@Techsithtube 4 жыл бұрын
Happy to hear that Abhay!
@aqibsaeed3229
@aqibsaeed3229 4 жыл бұрын
Thank you Hemil sir.. :)
@satyasahoo26
@satyasahoo26 4 жыл бұрын
Thx for this amazing redux tutorial
@adambotha01
@adambotha01 4 жыл бұрын
Nice vid, very helpful. Thanks man :)
@Techsithtube
@Techsithtube 4 жыл бұрын
Glad it helped!
@akash_gupta_2090
@akash_gupta_2090 4 жыл бұрын
Mst
@javohirsayfullayevich7127
@javohirsayfullayevich7127 4 жыл бұрын
this is short clear tutorial thank you bro. when I'm working with api I'm encountering problems about CORS policy, so can make a vedio for this theme too, thanks again
@veronicasoloduha3009
@veronicasoloduha3009 5 жыл бұрын
this is an amazing tutorial!!!
@parushanaidoo9183
@parushanaidoo9183 2 жыл бұрын
thank you for this video!
@Techsithtube
@Techsithtube 2 жыл бұрын
Glad it was helpful!
@marcphilippe7417
@marcphilippe7417 6 жыл бұрын
Kind of a noob question, but just to clarify: if in the reducer you return{ ...state, history: newHistory}, then the state variable (which represents the previous state) already has a different history property, right? So by re-declaring it after the spread operator, you are overwriting the property because it has the same key?
@Techsithtube
@Techsithtube 6 жыл бұрын
Yes, that is exactly what is happening. I am overriding any property called history. if it doesn't have that property it will create a new one.
@Mohamed-uf5jh
@Mohamed-uf5jh 5 жыл бұрын
great job , and goog explain , I like That
@issaissifou3579
@issaissifou3579 4 жыл бұрын
Nice tuto!
@mansurhaider9163
@mansurhaider9163 5 жыл бұрын
great explain. you made my day easy :)
@Techsithtube
@Techsithtube 5 жыл бұрын
I am glad that your learn something from this. :)
@narekdanielyan8810
@narekdanielyan8810 4 жыл бұрын
Could you use spread operator instead of concat function in reducer?
@Techsithtube
@Techsithtube 4 жыл бұрын
Narek, you could however, it all depends on what you are concatenating and how. if you try to concat "Hi" , it would keep it as string "Hi" but with spread it would convert to ["H", "i"]
@aishwaryadash3359
@aishwaryadash3359 4 жыл бұрын
Cannot read property 'age' of undefined I am getting this error again and again. Please help me out.
@Techsithtube
@Techsithtube 4 жыл бұрын
Aishwarya, it seems the state or object that you are trying to get age from , doesnt exist or cant be access from that scope.
@rupjuly1985
@rupjuly1985 5 жыл бұрын
Buddy!!! U are master. Thanks
@MultiUlme
@MultiUlme 6 жыл бұрын
I see that you in the reducer are setting the age with action.value. Where do you set that value so you can use it in the reducer with action.value?
@MultiUlme
@MultiUlme 6 жыл бұрын
I figured it out. I had to set in mapDispatchToProps from dispatch({type: 'AGE_UP'}) to dispatch({type: 'AGE_UP', value: 1}). Now it works with action.value in the reducer.
@Techsithtube
@Techsithtube 6 жыл бұрын
Yep. That is the answer. You have to dispatch it so it will reach the reducer.
@androidgeeking
@androidgeeking 6 жыл бұрын
Amazing work
@rushansakhib
@rushansakhib 5 жыл бұрын
techsith, why you haven't use uuid pack to generate ids?
@Techsithtube
@Techsithtube 5 жыл бұрын
Objective is to make things simpler , one concept per video. users can learn other things like generating ids separately
@angelc9557
@angelc9557 4 жыл бұрын
Sir great
@ishimdarahamad8692
@ishimdarahamad8692 6 жыл бұрын
Awesome Sir...
@mahendrayadav5060
@mahendrayadav5060 5 жыл бұрын
very nice video!!!
@arshgill656ful
@arshgill656ful 4 жыл бұрын
if we use saga, how we pass id to the new function
@arshgill656ful
@arshgill656ful 4 жыл бұрын
never mind, worked by using props
@vivuuc4209
@vivuuc4209 4 жыл бұрын
love it !
@marthyh
@marthyh 4 жыл бұрын
Thank you very much !!
@prashantrewatkar6274
@prashantrewatkar6274 6 жыл бұрын
very Nice
@ГеоргийРукомин
@ГеоргийРукомин 5 жыл бұрын
Thank you.
@pisanghangus2
@pisanghangus2 5 жыл бұрын
you change if statement from last video to switch statement without warning :)
@Techsithtube
@Techsithtube 5 жыл бұрын
Editing magic :)
@Akil3792
@Akil3792 4 жыл бұрын
Where have you explained about immutability
@dhananjaymenon3601
@dhananjaymenon3601 5 жыл бұрын
Why is immutability so important, doesnt it increase the memory used
@Techsithtube
@Techsithtube 5 жыл бұрын
It does , that is the redux concept. However if you use mobx you dont need immutability.
@achillles6838
@achillles6838 3 жыл бұрын
Why do we need to update it immutability???
@rogerodipo3499
@rogerodipo3499 5 жыл бұрын
And when I..................... click on the Age Down button, the age decreases.
@nanasarathi
@nanasarathi 6 жыл бұрын
Awesome
@anatoliystukota5731
@anatoliystukota5731 5 жыл бұрын
age decreasing button increases age :(
@logs
@logs 5 жыл бұрын
Life doesn't want you to get younger.
@infotainment7123
@infotainment7123 4 жыл бұрын
how is this called immutable way
@vineethreddymaryada8387
@vineethreddymaryada8387 5 жыл бұрын
Everything is great and thank you so much.
@Techsithtube
@Techsithtube 5 жыл бұрын
Vineeth, there are some things I can change and some you cant . like my face, my accent. What is about my accent that is problem for you?
@vineethreddymaryada8387
@vineethreddymaryada8387 5 жыл бұрын
@@Techsithtube I am so sorry, I meant no offense.
@timokock7715
@timokock7715 4 жыл бұрын
sexy tutorials...heheheh oh no techsith tutorials sorry. Nice men, thanks a lot for your effort. Awesome videos
@Techsithtube
@Techsithtube 4 жыл бұрын
Thanks for watching Timo...
@AnimeshSinghweb
@AnimeshSinghweb 3 жыл бұрын
ok
@pulinshah4951
@pulinshah4951 6 жыл бұрын
1:22 typo
@octaviopercivaldi4962
@octaviopercivaldi4962 4 жыл бұрын
zoom out plz
Immer.js Crash Course - And Why Immutability Is Very Important ⚡
10:00
Mehul - Codedamn
Рет қаралды 17 М.
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 33 МЛН
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 2,2 МЛН
Lamborghini vs Smoke 😱
00:38
Topper Guild
Рет қаралды 53 МЛН
FOREVER BUNNY
00:14
Natan por Aí
Рет қаралды 36 МЛН
Redux simple example | Redux Tutorial | Redux for beginners
14:18
React Refs and DOM
21:43
techsith
Рет қаралды 72 М.
Redux-thunk Middleware | React Redux Series Part 7
16:08
techsith
Рет қаралды 78 М.
Why Redux Store Changes Don't Re-render
3:39
Peter Elbaum
Рет қаралды 10 М.
Why I Moved from React Redux to Zustand and Why You Should Too!
19:24
Redux Introduction |  How Redux works | Redux fundamentals
11:07
Mastering React Batch Updating
10:23
Jack Herrington
Рет қаралды 45 М.
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 33 МЛН