Artwork

Konten disediakan oleh Frontend First, Sam Selikoff, and Ryan Toronto. Semua konten podcast termasuk episode, grafik, dan deskripsi podcast diunggah dan disediakan langsung oleh Frontend First, Sam Selikoff, and Ryan Toronto atau mitra platform podcast mereka. Jika Anda yakin seseorang menggunakan karya berhak cipta Anda tanpa izin, Anda dapat mengikuti proses yang dijelaskan di sini https://id.player.fm/legal.
Player FM - Aplikasi Podcast
Offline dengan aplikasi Player FM !

All about useEvent

59:28
 
Bagikan
 

Manage episode 328275223 series 1635850
Konten disediakan oleh Frontend First, Sam Selikoff, and Ryan Toronto. Semua konten podcast termasuk episode, grafik, dan deskripsi podcast diunggah dan disediakan langsung oleh Frontend First, Sam Selikoff, and Ryan Toronto atau mitra platform podcast mereka. Jika Anda yakin seseorang menggunakan karya berhak cipta Anda tanpa izin, Anda dapat mengikuti proses yang dijelaskan di sini https://id.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 episode

Artwork

All about useEvent

Frontend First

197 subscribers

published

iconBagikan
 
Manage episode 328275223 series 1635850
Konten disediakan oleh Frontend First, Sam Selikoff, and Ryan Toronto. Semua konten podcast termasuk episode, grafik, dan deskripsi podcast diunggah dan disediakan langsung oleh Frontend First, Sam Selikoff, and Ryan Toronto atau mitra platform podcast mereka. Jika Anda yakin seseorang menggunakan karya berhak cipta Anda tanpa izin, Anda dapat mengikuti proses yang dijelaskan di sini https://id.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 episode

Semua episode

×
 
Loading …

Selamat datang di Player FM!

Player FM memindai web untuk mencari podcast berkualitas tinggi untuk Anda nikmati saat ini. Ini adalah aplikasi podcast terbaik dan bekerja untuk Android, iPhone, dan web. Daftar untuk menyinkronkan langganan di seluruh perangkat.

 

Panduan Referensi Cepat