LiveStoreContext
LiveStoreContext<
TSchema> =LiveStoreContextRunning<TSchema> | {error:unknown;stage:"error"; } | {cause:IntentionalShutdownCause|StoreInterrupted|UnknownError;stage:"shutdown"; }
Defined in: packages/@livestore/livestore/src/store/store-types.ts:44
Union type representing the possible states of a LiveStore context.
Used by framework integrations (React, Solid, etc.) to track Store lifecycle:
running: Store is active and ready for queries/commitserror: Store failed during boot or operationshutdown: Store was intentionally shut down or interrupted
Type Parameters
Section titled “Type Parameters”TSchema
Section titled “TSchema”TSchema extends LiveStoreSchema = Any
The LiveStore schema type. Defaults to LiveStoreSchema.Any.