Artwork

เนื้อหาจัดทำโดย Frontend First, Sam Selikoff, and Ryan Toronto เนื้อหาพอดแคสต์ทั้งหมด รวมถึงตอน กราฟิก และคำอธิบายพอดแคสต์ได้รับการอัปโหลดและจัดเตรียมโดย Frontend First, Sam Selikoff, and Ryan Toronto หรือพันธมิตรแพลตฟอร์มพอดแคสต์โดยตรง หากคุณเชื่อว่ามีบุคคลอื่นใช้งานที่มีลิขสิทธิ์ของคุณโดยไม่ได้รับอนุญาต คุณสามารถปฏิบัติตามขั้นตอนที่อธิบายไว้ที่นี่ https://th.player.fm/legal
Player FM - แอป Podcast
ออฟไลน์ด้วยแอป Player FM !

All about useEvent

59:28
 
แบ่งปัน
 

Manage episode 328275223 series 1635850
เนื้อหาจัดทำโดย Frontend First, Sam Selikoff, and Ryan Toronto เนื้อหาพอดแคสต์ทั้งหมด รวมถึงตอน กราฟิก และคำอธิบายพอดแคสต์ได้รับการอัปโหลดและจัดเตรียมโดย Frontend First, Sam Selikoff, and Ryan Toronto หรือพันธมิตรแพลตฟอร์มพอดแคสต์โดยตรง หากคุณเชื่อว่ามีบุคคลอื่นใช้งานที่มีลิขสิทธิ์ของคุณโดยไม่ได้รับอนุญาต คุณสามารถปฏิบัติตามขั้นตอนที่อธิบายไว้ที่นี่ https://th.player.fm/legal

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:

  continue reading

185 ตอน

Artwork

All about useEvent

Frontend First

197 subscribers

published

iconแบ่งปัน
 
Manage episode 328275223 series 1635850
เนื้อหาจัดทำโดย Frontend First, Sam Selikoff, and Ryan Toronto เนื้อหาพอดแคสต์ทั้งหมด รวมถึงตอน กราฟิก และคำอธิบายพอดแคสต์ได้รับการอัปโหลดและจัดเตรียมโดย Frontend First, Sam Selikoff, and Ryan Toronto หรือพันธมิตรแพลตฟอร์มพอดแคสต์โดยตรง หากคุณเชื่อว่ามีบุคคลอื่นใช้งานที่มีลิขสิทธิ์ของคุณโดยไม่ได้รับอนุญาต คุณสามารถปฏิบัติตามขั้นตอนที่อธิบายไว้ที่นี่ https://th.player.fm/legal

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:

  continue reading

185 ตอน

ทุกตอน

×
 
Loading …

ขอต้อนรับสู่ Player FM!

Player FM กำลังหาเว็บ

 

คู่มืออ้างอิงด่วน