Artwork

תוכן מסופק על ידי Frontend First, Sam Selikoff, and Ryan Toronto. כל תוכן הפודקאסטים כולל פרקים, גרפיקה ותיאורי פודקאסטים מועלים ומסופקים ישירות על ידי Frontend First, Sam Selikoff, and Ryan Toronto או שותף פלטפורמת הפודקאסט שלו. אם אתה מאמין שמישהו משתמש ביצירה שלך המוגנת בזכויות יוצרים ללא רשותך, אתה יכול לעקוב אחר התהליך המתואר כאן https://he.player.fm/legal.
Player FM - אפליקציית פודקאסט
התחל במצב לא מקוון עם האפליקציה 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://he.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://he.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 פרקים

All episodes

×
 
Loading …

ברוכים הבאים אל Player FM!

Player FM סורק את האינטרנט עבור פודקאסטים באיכות גבוהה בשבילכם כדי שתהנו מהם כרגע. זה יישום הפודקאסט הטוב ביותר והוא עובד על אנדרואיד, iPhone ואינטרנט. הירשמו לסנכרון מנויים במכשירים שונים.

 

מדריך עזר מהיר