Skip to content

StateSetters

StateSetters<TTableDef> = Dispatch<TTableDef[State.SQLite.ClientDocumentTableDefSymbol]["options"]["partialSet"] extends false ? SetStateAction<TTableDef["Value"]> : SetStateActionPartial<TTableDef["Value"]>>

Defined in: packages/@livestore/react/src/useClientDocument.ts:182

The setter function type for useClientDocument, determined by the table’s partialSet option.

  • If partialSet: false (default), requires full state replacement
  • If partialSet: true, accepts partial updates merged with existing state

TTableDef extends State.SQLite.ClientDocumentTableDef.TraitAny

The client-document table definition type