.agents/skills/how-to-write-component/references/state.md
Read this document when a change involves Jotai, form drafts, route identity, shared client state, or local persistence.
defaultValue and keyed remounts.useParams, route arguments, and nuqs as the owners of URL identity and updates.atomWithQuery or atomWithMutation for async work driven by atom state. Do not hand-roll loading, error, or in-flight state for atom-orchestrated work.jotai-tanstack-query does not provide TanStack Query tracked properties, so reading a whole query atom subscribes to the entire observer result.createLocalStorageState; callers should not scatter direct storage access or raw keys.