У нас вы можете посмотреть бесплатно Is React’s useCallback Hook Useless? | PodRocket или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Dominik Dorfmeister joins PodRocket to discuss the pitfalls of overusing useCallback and useMemo in React. Learn why these Hooks can harm readability and performance in large codebases, how the React compiler and useEffectEvent improve optimization, and best practices for PR reviews, referential stability, and modern Hook usage. The main points: *Why useCallback and useMemo are often unnecessary and can introduce complexity *When memoization actually improves performance (and when it doesn’t) *Alternatives like the latest ref pattern and React Compiler for cleaner, future-proof React code --- Links Bluesky: https://bsky.app/profile/tkdodo.eu Github: https://github.com/tkdodo X: https://x.com/TkDodo Resources The Useless useCallback: https://tkdodo.eu/blog/the-useless-us... --- Chapters 00:00 Why talk about useCallback and useMemo 00:40 Are useCallback and useMemo actually useless? 02:00 When (if ever) memoization is worth it 07:30 Pitfalls of overusing memoization in PRs and team guidelines 12:10 Latest ref pattern as an alternative 18:40 React Compiler and ESLint support 23:30 Why self-reviews help catch unnecessary memoization 28:10 Do React docs encourage over-optimization? 33:00 Advice for React developers --- 🎙 Listen to PodRocket 🎧 Spotify: https://open.spotify.com/show/6oFuKu8... 🎧 Apple Podcasts: https://podcasts.apple.com/us/podcast... 📺 Subscribe on YouTube: @LogRocket Follow on Socials ➡️ Paige Niedringhaus, Host: https://www.paigeniedringhaus.com/ ➡️ Emily Kochanek, Producer: / emily-kochanek-11582750 ➡️ Elizabeth Becz, Production Assistant: / elizabethb3cz ➡️ LogRocket: / logrocket --- What does LogRocket do? LogRocket provides AI-first session replay and analytics that surface the UX and technical issues impacting user experiences. Start understanding where your users are struggling by trying it for free at LogRocket.com.