~/talk

The Apollo Cache is Your Friend, if You Get To Know It

Talkat React Summit 2022 · 2022-06-17..06-21· [react, graphql]

Shows how Apollo Client 3 at Shopify actually stores a normalized in‑memory cache, why fetch policies like cache-first default and network-only matter, and when updates merge versus require custom update functions. Demonstrates a real bug where product metadata and metadata collide because a nested values object lacks an identifier and the fix is add ID to values. Covers list ordering, add/remove pitfalls, garbage collection, retention and eviction APIs and when to call gc to reclaim orphaned objects.

AI-written summary · about

  1. 0:00Start
  2. 0:32Befriend the Apollo Cache
  3. 2:11A representation of your data
  4. 4:33Cache normalization?
  5. 4:50Normalizing in steps
  6. 5:41Assigning unique identifiers
  7. 6:45Put the objects into a flattened data structure
~/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.