У нас вы можете посмотреть бесплатно Why "Stale Closure" Misleads React Devs или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
What closures have to do with React? How it's one of the most misunderstood topics in the React Community? Discussing why the term "Stale Closure" is confusing and inaccurate and it's only mentioned in the context of React. My newsletter recommendation: (not sponsored, I just like them) ⚛️ This Week in React https://thisweekinreact.com/ ⏱️ Timestamps: 00:00 - #1 React question on StackOverflow 00:30 - Stale Closure Concept 00:56 - Is it only a React issue? 01:14 - The Canonical Problem 01:36 - The Popular Misconception 02:20 - MDN: Closures definition 03:26 - Where we use closures 03:52 - Closures don't freeze values 05:14 - The Real Reason behind stale values 07:39 - Vanilla JS example 08:48 - Disclaimer on setState queue 09:11 - Why ppl hallucinate that closures freeze state 11:48 - Spurious Correlation 📖 Acknowledgments & Further Reading: https://overreacted.io/how-are-functi... https://developer.mozilla.org/en-US/d... https://tkdodo.eu/blog/hooks-dependen... https://blog.isquaredsoftware.com/202... http://dmitrysoshnikov.com/ecmascript... https://wsvincent.com/javascript-scop...