~/talk

Let's manage our local state with GraphQL

Talkat ReactJS Day 2018 · on Friday, 2018-10-05· [graphql, react]
slides:none on file

Claim: manage local UI state using GraphQL instead of Redux by using apollo-link-state with apollo-boost and react-apollo. Shows defaults and resolvers stored in the Apollo cache, a mutation and client-side query that open and close a modal by writing to cache, plus an Apollo consumer shortcut. Demonstrates a working modal example, notes SSR and cache tweaks, and previews Apollo Client 3.0 merging link-state and an Apollo CLI that generates TypeScript types for queries.

AI-written summary · about

  1. 0:00Start
  2. 2:02MANAGING LOCAL STATE WITH APOLLO
  3. 6:55RESOLVERS
  4. 11:40THE QUERY COMPONENT
  5. 15:24FITS ONE SLIDE
  6. 15:34THE MUTATION COMPONENT
  7. 19:00THE MODAL DOES NOT CLOSE
  8. 20:36APOLLO BOOST SUPPORTS SSR NOW
  9. 24:16OPT-IN SCHEMA VALIDATION
~/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.