Function: useLockState()
@roomful/solid / useLockState
Function: useLockState()
Section titled “Function: useLockState()”useLockState<
TPresence>(key):Accessor<LockState|null>
Defined in: solid/src/index.ts:1442
Subscribes to the resolved state of a single lock key (the lock-on-focus
pattern: read holder to decide whether the local peer owns the key).
Type Parameters
Section titled “Type Parameters”TPresence
Section titled “TPresence”TPresence extends PresenceData = PresenceData
The room presence shape.
Parameters
Section titled “Parameters”string
The lock key to observe.
Returns
Section titled “Returns”Accessor<LockState | null>
The current lock state accessor, resolving to null when free.