Type Alias: SharedStateSetter()\<T\>
@roomful/solid / SharedStateSetter
Type Alias: SharedStateSetter()<T>
Section titled “Type Alias: SharedStateSetter()<T>”SharedStateSetter<
T> = (nextValue) =>T
Defined in: solid/src/index.ts:84
Updates a shared state binding and returns the resolved value.
Type Parameters
Section titled “Type Parameters”T
The shared state value type.
Parameters
Section titled “Parameters”nextValue
Section titled “nextValue”The next value or an updater derived from the previous value.
Returns
Section titled “Returns”T
The resolved shared state value.