Skip to content

SetStateAction

SetStateAction<S> = S | (previousValue) => S

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

A state update that can be either a full value or a function returning a full value. Mirrors React’s SetStateAction type.

S

The state type