zustand-stores
OfficialSSR-safe Zustand stores for auth state
Authoraexol-studio
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Zust and stores provide a lightweight, type-safe pattern for sharing UI and authentication state across React components with SSR-safe initialization, ensuring server-rendered HTML and client navigation stay in sync without hydration headaches.
Core Features & Use Cases
- SSR-safe initialization from server-provided data (e.g., window.INITIAL_AUTH) to hydrate initial state
- Centralized access via useAuthStore and useAuthStore.getState() for helpers
- Clear separation of concerns with actions and selectors in Zustand stores
- Lightweight, easily testable pattern suitable for auth flows and UI state
Quick Start
Initialize the auth store at startup and read isAuthenticated with useAuthStore((s) => s.isAuthenticated).
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: zustand-stores Download link: https://github.com/aexol-studio/axolotl/archive/main.zip#zustand-stores Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.