~/talk

Sharing logic & state between universal web and mobile apps

Talkat React Nexus 2023 · 2023-07-07..07-08· [react, react-native]
github:mojavad
slides:none on file

Argues for sharing business logic and client state between web and mobile by packaging hooks and API adapters into a monorepo and running session-like state on the edge. Demo uses a shared useSearch hook and context across Expo (mobile) and Next (web), a type-safe worker-functions SDK that calls Cloudflare Workers + D1, and a turbo repo/NX layout. Clearing search history persists to the edge and appears synced on reload; websockets are proposed for real-time updates.

AI-written summary · about

  1. 0:00Introduction and visa story
  2. 3:50Universal apps and React Native
  3. 6:12Sharing business logic and config
  4. 8:58API layers and adapters
  5. 10:24App state and context
  6. 12:29Demo sharing logic
  7. 16:01Demo syncing state with edge
  8. 26:39Recap and closing
~/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.