Frontend First
Frontend First
Sam Selikoff, Ryan Toronto
Jul 19, 2021 · 1 hr 3 min

Shared reactive data without context or effects

MP3
Sam and Ryan talk about whether stores in module scope are a better alternative to Context for sharing global state in React apps.Topics include:0:00 – Intro3:21 – Using Zustand to refactor a useAuth hook34:08 – Module scope vs. context for shared state58:52 – 7 GUI tasksLinks:ZustandSebastian’s tweet on default context valuesSam’s Auth Provider using Zustand, SWR and Suspense7 GUIs

This podcast uses Simplecast for stats and dynamic audio. What this means Timestamps may be slightly off because ads are inserted dynamically. Episodes play from the podcast's own servers, unmodified. Not affiliated with Podbay.