Shared reactive data without context or effects

19/07/2021 1h 3min Episodio 126
Shared reactive data without context or effects

Listen "Shared reactive data without context or effects"

Episode Synopsis

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