Skip to content
All about useEvent episode artwork

EPISODE · May 12, 2022 · 59 MIN

All about useEvent

from Frontend First · host Frontend First

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: useEvent RFCS in the React repo Dan Abramov’s thread on how useEvent relates to “fixing” useEffect Dan’s RFC comment on why useEvent is not just a “nicer” useCallback

Episode metadata supplied by the publisher feed · Published May 12, 2022

Embed this episode

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.

Distinct summary based on available episode metadata or transcript content.

Ready to play

All about useEvent

0:00 59:28

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of Frontend First?

This episode is 59 minutes long.

When was this Frontend First episode published?

This episode was published on May 12, 2022.

Can I download this Frontend First episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!