Variable: create
June 23, 2026 ยท View on GitHub
Variable: create
constcreate:Creator
Defined in: packages/core/src/create.ts:106
Create a local store, the main side of a shared store, or a client mirror of a shared store.
Remarks
- Pass a Slice function for a single store.
- Pass an object of slice factories for a slices store.
- When an object input only contains functions, prefer explicit
sliceModeto avoid ambiguous inference. - When
clientTransportorworkeris provided, returned store methods become promise-returning methods because execution happens on the main shared store. - New semantics should prefer explicit helpers or variants over adding more ambiguous
create()input forms.