Skip to main content
Hook to get the scrollback action for a stream. Scrollback is the action of getting miniblocks from a stream before a certain point in time. Getting miniblocks means that new events that are possibly new messages, reactions and so on are fetched.

Imports

Definition

Source: useScrollback

Parameters

streamId

  • Type: string
The id of the stream to get the scrollback action for.

config

  • Type: ActionConfig<MessageTimeline["scrollback"]>
  • Optional
Configuration options for the action.

Return Type

The scrollback action and its loading state.