Skip to main content
Hook to get the timeline events from a stream. You can use the useTimeline hook to get the timeline events from a channel stream, dm stream or group dm stream

Imports

Examples

Definition

Source: useTimeline

Parameters

streamId

  • Type: string
The id of the stream to get the timeline events from.

config

  • Type: ObservableConfig.FromObservable<TimelineEvent[]>
  • Optional
Configuration options for the observable.

Return Type

The timeline events of the stream as an observable.