Context providing authentication state only (read-only). Consumers using this context alone will not re-render when actions are triggered, enabling efficient performance optimization through split context pattern.
export const AuthStateContext = createContext< AuthStateContextValue | undefined>(undefined); Copy
export const AuthStateContext = createContext< AuthStateContextValue | undefined>(undefined);
Context providing authentication state only (read-only). Consumers using this context alone will not re-render when actions are triggered, enabling efficient performance optimization through split context pattern.
Source