Reference

createRequestStoreFactory

Creates a factory for per-request stores from an initial-state callback. Use this when SSR or server actions need isolated store instances instead of sharing process-global state.

Signature

function createRequestStoreFactory<T, TPersisted>(initial: (): T, options?: StoreOptions<T, TPersisted>): (): Store<T>