Player FM 앱으로 오프라인으로 전환하세요!
All about useEvent
Manage episode 328275223 series 1635850
Sam and Ryan talk about the new useEvent RFC, and how useEvent lets you extract event logic from your side effects. They also read and discuss Dan Abramov’s recent Twitter thread on how useEvent addresses the problems people are encountering with React 18’s Strict Mode behavior around running effects twice on mount.
Topics include:
- 0:00 - Intro
- 0:34 - How useEvent relates to the changes to Strict Mode in React 18
- 12:04 - Dan Abramov’s thread on how useEvent relates to “fixing” useEffect
- 37:37 - What’s the correct mental model for useEvent
- 53:55 - How useEvent is different from useCallback
Links:
185 에피소드
Manage episode 328275223 series 1635850
Sam and Ryan talk about the new useEvent RFC, and how useEvent lets you extract event logic from your side effects. They also read and discuss Dan Abramov’s recent Twitter thread on how useEvent addresses the problems people are encountering with React 18’s Strict Mode behavior around running effects twice on mount.
Topics include:
- 0:00 - Intro
- 0:34 - How useEvent relates to the changes to Strict Mode in React 18
- 12:04 - Dan Abramov’s thread on how useEvent relates to “fixing” useEffect
- 37:37 - What’s the correct mental model for useEvent
- 53:55 - How useEvent is different from useCallback
Links:
185 에피소드
Alle afleveringen
×플레이어 FM에 오신것을 환영합니다!
플레이어 FM은 웹에서 고품질 팟캐스트를 검색하여 지금 바로 즐길 수 있도록 합니다. 최고의 팟캐스트 앱이며 Android, iPhone 및 웹에서도 작동합니다. 장치 간 구독 동기화를 위해 가입하세요.