Skip to content

Function: useFieldPresence()

@roomful/solid


@roomful/solid / useFieldPresence

useFieldPresence<TPresence>(): UseFieldPresenceResult

Defined in: solid/src/index.ts:1283

Subscribes to field presence: which remote peers are active on which field. Declare the local peer’s field with setActiveField (e.g. on focus/blur) and read getFieldPeers(id) to render “who else is editing this” indicators.

TPresence extends PresenceData = PresenceData

The room presence shape.

UseFieldPresenceResult

The active fields accessor plus setActiveField and getFieldPeers.