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>(initial: (): T, options?: StoreOptions<T>): (): Store<T>