~/talk

Throw Try/Catch in the 🗑️ Level up your React error handling with the Result type

Talkat React Miami 2025 · 2025-04-17..04-18· [react, typescript]
slides:none on file

Argues for replacing try/catch with a Result type (using Neverthrow) and shows concrete patterns: wrap unknown code with try/tryPromise, validate IO with Zod or similar, add tagged errors carrying context, and reserve React Error Boundaries for true defects. Uses a domain-renewal case where the team documents 17 distinct error types, improves telemetry and cuts support tickets, and demonstrates how Result unions let TypeScript track failures across async chains.

AI-written summary · about

  1. 0:00Introduction
  2. 1:13Rethinking error handling
  3. 3:24The problem with try/catch
  4. 10:08Case study in better errors
  5. 13:34The result type explained
  6. 19:56Practical guide and summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.