~/talk

Spin the wheel: building a truly reusable composable

slides:none on file

Builds a single useApi composable that accepts a getResults function and a query value, extracts and normalises responses, and exposes loading / error / result refs; demos with three live APIs (TheCatAPI, Dog API, SpaceX GraphQL) using axios GET and axios POST for GraphQL, shows the exact response fields mapped (cats: data[0].url, dogs: data.message, ships: data.data.ships[0].image), and the live coding succeeds end to end.

AI-written summary · about

  1. 0:00Intro
  2. 2:57Composition API
  3. 4:00Reactive State API
  4. 4:27Flexible API
  5. 7:52Cats API
  6. 8:08Spin the wheel
  7. 8:45Fetching images
  8. 16:00Logic to colon
  9. 16:18Copy paste logic
  10. 19:50Add second api
~/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.