Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions mobile/stores/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Stores

Zustand stores for global state management across the mobile app.

## Pattern

Each store is created with `create<T>()` from `zustand`. Stores that need cross-session
persistence use the `persist` middleware backed by `AsyncStorage`. All stores are
re-exported from `index.ts` so components import from a single path:
`import { useWalletStore } from '@/stores'`.

## Available Stores

| Export | File | Purpose |
|---|---|---|
| `useWalletStore` | `walletStore.ts` | Wallet address and connection state |
| `useGroupsStore` | `groupsStore.ts` | Cached groups list with loading state |
| `useUserStore` | `userStore.ts` | Authenticated user profile |
| `useGroupStore` | `useGroupStore.ts` | Active group context |