Skip to main content

Handling global frontend state

See the frontend tutorial for a high level overview.

Jotai​

TODO: Jotai atoms. Why Jotai over Zustand,.

Managing user auth​

Managing global state and authentication​

  • Jotai atoms to manage global state. See src/frontend/teaser/hooks/auth/useUserAuth.js
const [userAuthAtomValue] = useAtom(readOnlyUserAuthAtom);

Other use cases with global state and jotai​