~/talk

Solving Real Life Problems with React Suspense

Talkat UtahJS Conf 2019 · on Friday, 2019-09-20· [react, frontend-architecture]
links:none on file
slides:none on file

Builds a small search app that replaces manual loading state code with React Suspense and a homemade react-cache implementation, claiming the core fits in 7 lines of code. Implements a createResource that caches results, whose read method throws a promise to trigger Suspense, removes isLoading flags and effect boilerplate, and demos cached lookups that return instantly after the first 3s fetch. The example compiles and the live demo shows the loader then immediate cached responses.

AI-written summary · about

  1. 0:00Start
  2. 5:30What if You Have Multiple Unresolved Calls
  3. 10:27React Cache
  4. 14:36Create Resource
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.