Skip to main content

Preset Store

The usePresetStore holds all saved presets fetched from the Convex backend. It is populated once at the wizard layout mount via usePresetHydration().

State Shape


Hydration Strategy

Presets are fetched once when the (create-commit)/_layout.tsx mounts. The isHydrated flag prevents redundant fetches on subsequent navigations within the wizard flow. This guarantees zero loading spinners on spoke screens.

Usage in Wizard

Spoke screens read from the preset store to display selectable preset lists. When the user taps a preset, its data is copied into the appropriate slot on useTaskDraftStore.