Interface: UseActivityResult
@roomful/vue / UseActivityResult
Interface: UseActivityResult
Section titled “Interface: UseActivityResult”Defined in: vue/src/index.ts:399
Describes the return value of useActivity.
Properties
Section titled “Properties”entries
Section titled “entries”entries:
ReadonlyRef<ActivityEntry[]>
Defined in: vue/src/index.ts:404
Exposes the current activity feed, newest first. Reactive: updates on any local or remote entry.
record()
Section titled “record()”record: (
type,data?) =>ActivityEntry
Defined in: vue/src/index.ts:409
Records a new activity entry authored by the local peer and broadcasts it.
Records an activity entry and broadcasts it to peers.
Parameters
Section titled “Parameters”string
The activity type label.
unknown
An optional structured payload.
Returns
Section titled “Returns”The recorded entry.