API Reference
Complete reference for every exported function, hook, and type in stroid. Each entry includes the TypeScript signature, parameters, return values, and runnable examples.
createStore
Creates a new store instance with state, actions, and computed values.
useStore
React hook to subscribe a component to a store with a selector.
setStore
Imperatively update a store's state from outside actions.
useFormStore
Specialized hook for form state with validation, dirty tracking, and submission.
createStoreForRequest
Create an isolated store instance for SSR / request-scoped state.
StoreOptions
Configuration options for persistence, sync, and DevTools.