Redux-thunk Middleware | React Redux Series Part 7

  Рет қаралды 78,371

techsith

techsith

Күн бұрын

Пікірлер: 107
@thomasmatlock942
@thomasmatlock942 6 жыл бұрын
I’m guessing the 2 people who hit dislike don’t know what React or redux is. That’s about as good of an explanation as it gets
@JaphethAwah
@JaphethAwah 7 ай бұрын
Man there are always haters out there, I started looking at redux from code, and most of it made no sense to me till I found his explanations, couldn't be clearer, followed the entire redux series. I think he is quite concise and explains so well, he even explained the word thunk hahaha.. With short and concise videos.
@arsalanahmad1832
@arsalanahmad1832 3 жыл бұрын
I learnt redux from this series an year earlier, now I was stuck and was trying to deal with redux ascynchronously, I watched this again and I realized how much this series taught me, the video is still the same but I am with much more knowledge and skill, thanks to this video series and thank you TechSith !
@Techsithtube
@Techsithtube 3 жыл бұрын
I am glad that you keep coming back to watch these videos, I feel great as a teacher.
@shjohnson2941
@shjohnson2941 3 жыл бұрын
Great... This helped it to FINALLY begin to make sense!
@ruchirai5775
@ruchirai5775 5 жыл бұрын
Nothing is confusing, Its plain simple and amazing !
@kranthikumar5215
@kranthikumar5215 3 жыл бұрын
You are a real guru of technology sir god bless you for providing such videos sir live long🙏
@Techsithtube
@Techsithtube 3 жыл бұрын
Thanks Kranthi!
@premrajsahu5277
@premrajsahu5277 5 жыл бұрын
i really learn a lot from your tutorials. These are the easiest tutorial available. I have completed one of the top udemy course on react/redux. But this is way better than that. Thanks for all the effort.
@klausheino6986
@klausheino6986 6 жыл бұрын
You really made the complex subject seem so simple. I am learning to use redux and thunk and have had my nerves stretched by unclear tutorials, but this one was an exception. Liked and subscribed. Keep going :)
@Techsithtube
@Techsithtube 6 жыл бұрын
THanks for watching Klaus.
@tenzinwoeser6842
@tenzinwoeser6842 3 жыл бұрын
Love this and the earlier custom middleWare which you created. Thanks
@daviddonadze221
@daviddonadze221 6 жыл бұрын
you are my favorite teacher that i never had. Thx for those cool videos
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks David, Its good know that I am able to channel the knowledge. :)
@ravikamesh4763
@ravikamesh4763 5 жыл бұрын
Actions must be plain objects. Use custom middleware for async actions. This is the error you get if you try to use setTimeout or any async action. Hope it helps.
@kranthikumar5215
@kranthikumar5215 3 жыл бұрын
clean and clear explanation i have ever seen 👌
@Techsithtube
@Techsithtube 3 жыл бұрын
Glad it helped
@noamkleiner8749
@noamkleiner8749 5 жыл бұрын
Awesome tutorial, I'm following the series and learning so quick! Thanks a lot!
@sivamurugans3228
@sivamurugans3228 3 жыл бұрын
Awesome tutorial..! Good explanation
@Techsithtube
@Techsithtube 3 жыл бұрын
Glad it helped! Thanks for watching!
@mallikarjunkittad3123
@mallikarjunkittad3123 5 жыл бұрын
Awesome tutorial, now i got basic redux , THAX lots sir
@edgarnyc
@edgarnyc 5 жыл бұрын
Thanks for the video! Easy to understand, follow, and fully demonstrates how/why to use thunk. Thanks so much!
@kajurajude1753
@kajurajude1753 3 жыл бұрын
I love your tutorials
@Techsithtube
@Techsithtube 3 жыл бұрын
Thanks for watching!
@nickjunes
@nickjunes 5 жыл бұрын
It's funny how we have to create all this extra boilerplate just to bury the asynchronous functions more and more without any actual gain.
@subhashgn1775
@subhashgn1775 3 жыл бұрын
Thank you man for your great effort to give the quality content. I Have question, "Reducers must not do any asynchronous logic, calculate random values, or cause other "side effects" but how these middleware achieve the asynchronous logic integration.
@nomangulkhan
@nomangulkhan 6 жыл бұрын
. *You're Great!*
@mridulmishra8166
@mridulmishra8166 6 жыл бұрын
indians are...
@milanpavlovic8141
@milanpavlovic8141 8 ай бұрын
I love this explanation
@sharmamanish3
@sharmamanish3 6 жыл бұрын
Brilliant and beautifully explained.
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for watching!
@ATXpert
@ATXpert 2 жыл бұрын
Really helping me man, struggling to get a job so I'm making a whatsapp project
@trader9559
@trader9559 4 жыл бұрын
Awesome :)
@huanzhang4110
@huanzhang4110 5 жыл бұрын
You should probably switch around the names of ageUp and ageUpAsync. Its a little confusing as in the video the asynchronous function is called ageUp, and the synchronous function is called ageUpAsync xD
@sarojdash7210
@sarojdash7210 3 жыл бұрын
Can we dispatch from a setTimeout in mapDispatchToProps() without thunk middleware ? will it have dispatch as closure property even if we don't use thunk? I just want to understand if we can make async call then dispatch without thunk or not. and if so then what is the purpose of thunk
@xiaokourou
@xiaokourou 3 жыл бұрын
Awesome. Very clear
@websitesandsoftwaresolutio2812
@websitesandsoftwaresolutio2812 5 жыл бұрын
Exceptionally well explained ! Cheers Man
@ruchirai5775
@ruchirai5775 5 жыл бұрын
In love with your react series.Amazing explanation :)
@leannec6821
@leannec6821 4 жыл бұрын
Awesome Tutorial! Thank you!
@nivaech
@nivaech 5 жыл бұрын
Awesome series, very helpful. Thank you, jedi
@syedkashanadil7240
@syedkashanadil7240 5 жыл бұрын
Thats really impressive.
@umardarazkhan4817
@umardarazkhan4817 5 жыл бұрын
you told in this vedio that u are going to make another one in which u would show the get and post on server with redux implemented .. where is it sith?? can't find it ? by the way u are running an awsome tutorial series on ur own
@draganmilunovic2525
@draganmilunovic2525 6 жыл бұрын
You are the GREAT teacher. Thank you very much :))))
@ГеоргийРукомин
@ГеоргийРукомин 5 жыл бұрын
Thank you.
@emanuel5207
@emanuel5207 5 жыл бұрын
how does 'dispatch' parameter come in on ageUp function? export const ageUp = val => { return dispatch => { setTimeout( () => dispatch(ageUpAsync(val)), 2000 ); } };
@sivanesh-s
@sivanesh-s 5 жыл бұрын
That will be Provided by the redux-thunk middleware. Which gets this function returned in ageUp() and calls it with dispatcher argument
@djslimcodes2337
@djslimcodes2337 5 жыл бұрын
@@sivanesh-s Is it necessary to call it dispatch?
@sivanesh-s
@sivanesh-s 5 жыл бұрын
@@djslimcodes2337 Not really it is just the argument. You can name it anything
@zation99
@zation99 5 жыл бұрын
​@@sivanesh-s Exactly, for example the video named it 'dispach' which I believe is a typo. But that well (accidentally) illustrates the idea that it is just a parameter name XD
@nitishkesarwani4699
@nitishkesarwani4699 4 жыл бұрын
Hello, While going through this tutorial, I had a doubt. That is... we are doing all of this just to make things async., we captured the action, now we said that (it's from your example) if we will first save the value to the server and then will update the state, but in this case: suppose the current state's value is 5 (which is showing on UI) and user clicks the ageUP button, then user would like to send the updated value to the server (which will be '6' in this example), but the updation will only take place when the action would reach reducer. Before updating the state, we have called the server via middleware...to save the value (which will be 5 not 6) How will I be able to send the updated value to server ?
@Techsithtube
@Techsithtube 4 жыл бұрын
in that case you dont update value in the reducer. you simply set the new value in the reducer. this way the backend and frontend is sync.
@jiahaoyu855
@jiahaoyu855 5 жыл бұрын
You are the best! If you have made some udemy class I would buy it!
@cezar007dead8
@cezar007dead8 5 жыл бұрын
Grate job! Awesome tutorial!
@miroslavvalkovic9144
@miroslavvalkovic9144 2 жыл бұрын
Can you point me to that "Server interaction video" please? thank you
@aysommer
@aysommer 5 жыл бұрын
Thanks for you good video. It helped.
@infotainment7123
@infotainment7123 4 жыл бұрын
when you imported actionCreator from actions... i am getting error on this.. apparently there is no actionCreator in actions.js
@jojiharada
@jojiharada 4 жыл бұрын
getting the same. will let you know if I figure it out.
@jojiharada
@jojiharada 4 жыл бұрын
change the import statement to: import { ageUp, ageDown } from './store/actions/actions';
@jojiharada
@jojiharada 4 жыл бұрын
Also just noticed that he adds: import * as actionCreator from "./store/actions/actions'; which solves the problem.
@AdityaNaik12
@AdityaNaik12 6 жыл бұрын
In setTimeout why we need to add dispach, can we just call ageUpAsnc, dispatch is already there in mapDispachToProps. Tried to figure it out but still not getting it.
@Techsithtube
@Techsithtube 6 жыл бұрын
basically for async actions, we need to dispatch an event from mapDispachToProps then catch it with the redux thunk, and finish the async evert ( which is just settimeout in this case) and then dispatch it again to it with reach the reducer.
@aishwaryshah3823
@aishwaryshah3823 4 жыл бұрын
Kem cho sir ? tame react easy kari di du :) Thank You. Sir tame tips and tricks regarding video banao ne on react. please
@pkmkb_0
@pkmkb_0 3 жыл бұрын
muze south ind laga
@johncreativeproducts5688
@johncreativeproducts5688 6 жыл бұрын
NICE TUTORIAL!
@atul803
@atul803 5 жыл бұрын
why state. loading is not mapped with reducer state{}. Please confirm, without mapping in reducer we are changing the state true. Is this the correct way?
@kianitify
@kianitify 6 жыл бұрын
that was awesome
@salahmadih8478
@salahmadih8478 5 жыл бұрын
You are the best, thank you
@ivanbadyulya5562
@ivanbadyulya5562 5 жыл бұрын
What extension do you use to highlight a code block? :)
@Techsithtube
@Techsithtube 5 жыл бұрын
manual :)
@venkatpenubothu4805
@venkatpenubothu4805 5 жыл бұрын
Great!
@leartmorina5037
@leartmorina5037 5 жыл бұрын
Hey I'm struggling with redux my question is if i say switch(action.type) { case goap: return newstate default: return state } my question is when i dispatch the action goUp(1) i got count: undefined why this happen to me
@shijunli
@shijunli 6 жыл бұрын
Good explanation
@thanvezahmed3866
@thanvezahmed3866 6 жыл бұрын
Any plans of you doing videos on Epics redux observable
@Techsithtube
@Techsithtube 6 жыл бұрын
Not at the moment but I will put it in the queue of videos to make :)
@NandhuKishorReddy
@NandhuKishorReddy 5 жыл бұрын
Please help me..While refreshing page my redux state is clearing why....
@thanvezahmed3866
@thanvezahmed3866 6 жыл бұрын
Hi at 5.18 Ur import action creater from store/action/action Wer is this action creation declared in that file?
@Techsithtube
@Techsithtube 6 жыл бұрын
If its a default export you can name it whatever when you import it. Basically actionCreater becomes action
@thanvezahmed3866
@thanvezahmed3866 6 жыл бұрын
Got it. Thanks buddy :-)
@djslimcodes2337
@djslimcodes2337 5 жыл бұрын
at 14:46 can we place dispatch(loading()) above return? i guess we cant but why?
@HoangVu-lr8mh
@HoangVu-lr8mh 4 жыл бұрын
As you could see, dispatch is a parameter which is a function, so if you place dispatch(loading()) above the return statement, dispatch is undifined.
@agalligani
@agalligani 4 жыл бұрын
Where is the next video?
@nanasarathi
@nanasarathi 6 жыл бұрын
Awesome
@gottedev79
@gottedev79 5 жыл бұрын
you are awesome
@gottedev79
@gottedev79 5 жыл бұрын
got a subscriber
@Techsithtube
@Techsithtube 5 жыл бұрын
Thanks Dav for subscribing. :)
@iliketocode6986
@iliketocode6986 3 жыл бұрын
Isn't a thunk just a promise then?
@deathmachine808
@deathmachine808 4 жыл бұрын
Yeah but you're not actually awaiting it in the calling code... so you don't know if / when if finishes / succeeds or fails...
@sawyer303
@sawyer303 5 жыл бұрын
Hurts my ears when I hear him say basically ^^
@sawyer303
@sawyer303 5 жыл бұрын
Beisicaliii, I'm fkn dieing right here
@sawyer303
@sawyer303 5 жыл бұрын
Again :)))
@sawyer303
@sawyer303 5 жыл бұрын
@techsith lmgtfy.com/?q=basically+pronunciation Other than this, thank you! Lovely content ^^
@indowestlife
@indowestlife 6 жыл бұрын
*dispatch
@bleonmorina2986
@bleonmorina2986 5 жыл бұрын
can i translate your video in albanian language?
@becky2casandra810
@becky2casandra810 5 жыл бұрын
i hate small screen :(
@Techsithtube
@Techsithtube 5 жыл бұрын
Sorry, its very hard to display this in a zoom . Were you watching on mobile device?
@einfacherkerl3279
@einfacherkerl3279 9 ай бұрын
tutorial is good but honestly, redux is outdated like a dinosaur. there are better options now like reactquery and whoever is learning redux now must have been living under a rock
@rommyarb
@rommyarb 5 жыл бұрын
Please fix your spelling sir
@Techsithtube
@Techsithtube 5 жыл бұрын
Unfortunately, I can't fix it after the release of the video. But, I can be careful next time. I am not a great speller but I make up the short comings with my coding skill. :)
@hovhannes4628
@hovhannes4628 4 жыл бұрын
What mistake is it about, can you indicate the minute, Please?
@dhairyadudhatra278
@dhairyadudhatra278 3 жыл бұрын
volume is too LOW
@handsome_man69
@handsome_man69 6 жыл бұрын
seen
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for a comment felix. :)
@handsome_man69
@handsome_man69 6 жыл бұрын
@@Techsithtube youtube is really bad at tracking which videos I have seen, so I put a "seen" in all the videos comments i see, so i know i've seen it
@Techsithtube
@Techsithtube 6 жыл бұрын
:) its a good idea. You can also create a playlist of seen videos .
@nehajain7720
@nehajain7720 2 жыл бұрын
Brilliant and beautifully explained.
Redux simple example | Redux Tutorial | Redux for beginners
14:18
БУ, ИСПУГАЛСЯ?? #shorts
00:22
Паша Осадчий
Рет қаралды 2,9 МЛН
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 112 МЛН
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 6 МЛН
HOW TO USE REDUX THUNK - SAVE AND LOAD DATA FROM THE BACKEND
6:37
Maksim Ivanov
Рет қаралды 52 М.
Redux Introduction |  How Redux works | Redux fundamentals
11:07
React Redux Update State Immutable way Tutorial | Part - 4
16:45
TMUX in 100 seconds | Prime Reacts
11:43
ThePrimeTime
Рет қаралды 152 М.
React Refs and DOM
21:43
techsith
Рет қаралды 72 М.
React Pure Components Tutorial
13:34
techsith
Рет қаралды 59 М.
#4 Redux Thunk | MiddleWare | Asynchronous Actions | Redux Tutorial for Beginners
17:13
Imran Sayed - Codeytek Academy
Рет қаралды 8 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 258 М.
Apple display is the best… ☠️🍎 #transformation #iphone #samsung
0:27
Review Máy Đếm Tiền Tính Tổng #shorts
0:26
Review Máy Đếm Tiền
Рет қаралды 6 МЛН