Thanks for the useful tutorial! HOWEVER - Please note that useEffect should NOT be used as a listener, or as a way to activate side-effects (yes, even despite the confusing name). This is bad practice because it soon brings to circular/hard-to-manages dependency chains, with no real way to track which change leads to another. In this case, you should have wrapped to triggered function - instead of calling the "setTeam" function, you should have called either: 1.something like "setTeamAndSaveToLocalStorage", which gets a new state value, and sets the local storage to it, and right after that the team state. 2.a generic "setStateAndSaveToLocalStorage" function, which gets a setState func as a parameter, as well as a key for localStorage, and does the same thing, while just being reusable. In general - useEffect should be used as a tap to the mount/willUnmount events of a component. Everything else should be handled by triggers (onClick, onChange, etc...), to avoid listeners which are practically unmaintainable.
@@nikita-dev I've heard from a few other devs that localstorage has a lot of security concerns which is why we rarely see it being used in prod. What kind of services or apps still use it?
Hey man i saw your AWS s3 tutorial . I have doubt wether or not i can use multer to upload video files and is their any size limitation if i want to upload video ? My project is smiliar to other ott platforms but mainly it focus on regional and shortflims so is it possible to stream full video's using AWS s3 (with free tier) and also thank you for the formik and module videos i understood those concept well :)
DUDE I'VE BEEN TRYING TO SOLVE THIS PROBLEM FOR LIKE A WEEK THANK YOU SO MUCH
Very helpful and easy to implement, thanks!
Very helpful and easy to understand video. Explained nicely what I needed exactly.
Easy to understand, thank a lot brother ❤
Why don't you put more number of videos? Your videos are really useful.
Very helpfull tip, thanks!
Thanks so much. You're a great teacher!!!!
It's a very helpful video!! Thank you
AnimatePresence supports calling unmounted prototypes and can be used with any react component. Way easier, one line of code.
Thanks for the useful tutorial!
HOWEVER - Please note that useEffect should NOT be used as a listener, or as a way to activate side-effects (yes, even despite the confusing name).
This is bad practice because it soon brings to circular/hard-to-manages dependency chains, with no real way to track which change leads to another.
In this case, you should have wrapped to triggered function - instead of calling the "setTeam" function, you should have called either:
1.something like "setTeamAndSaveToLocalStorage", which gets a new state value, and sets the local storage to it, and right after that the team state.
2.a generic "setStateAndSaveToLocalStorage" function, which gets a setState func as a parameter, as well as a key for localStorage, and does the same thing, while just being reusable.
In general - useEffect should be used as a tap to the mount/willUnmount events of a component. Everything else should be handled by triggers (onClick, onChange, etc...), to avoid listeners which are practically unmaintainable.
you are god sent
Great explanation! Curious: Are there any production-level apps that still make use of localstorage?
yes for sure
@@nikita-dev I've heard from a few other devs that localstorage has a lot of security concerns which is why we rarely see it being used in prod. What kind of services or apps still use it?
Hey man i saw your AWS s3 tutorial . I have doubt wether or not i can use multer to upload video files and is their any size limitation if i want to upload video ? My project is smiliar to other ott platforms but mainly it focus on regional and shortflims so is it possible to stream full video's using AWS s3 (with free tier) and also thank you for the formik and module videos i understood those concept well :)