Troubleshooting
create is undefined from the root import
Import from a subpath. The root @ilokesto/state entrypoint is currently an empty runtime root.
import { create } from '@ilokesto/state/react';Vue says the composable must run inside setup or effectScope
Call the adapter inside setup or an active effectScope. For synchronous reads outside Vue, use readOnly().
Solid says an accessor needs a reactive owner
Call the adapter inside a component or createRoot. For non-reactive service code, use readOnly() and writeOnly().
Angular says it needs an injection context
Call the adapter where inject(DestroyRef) works, or pass { destroyRef } explicitly.
validate does not accept async schemas
The validate middleware rejects async Standard Schema results. Keep validation synchronous or validate before calling setState.
Redux DevTools does not show updates
devtools is disabled in production and depends on the browser extension being available.
Persisted state did not migrate
persist migrations run for local and cookie, not session. Check the stored { state, version } payload and migration array length.
adaptor cannot be imported or used
Install the optional immer peer dependency and use object state with adaptor.