import { useScrollback } from '@towns-protocol/react-sdk'
function useScrollback( streamId: string, config?: ActionConfig<MessageTimeline["scrollback"]>, ): { data: { terminus: boolean; fromInclusiveMiniblockNum: bigint; } | undefined; error: Error | undefined; isPending: boolean; isSuccess: boolean; isError: boolean; scrollback: () => Promise<{ terminus: boolean; fromInclusiveMiniblockNum: bigint; }>; }
string
ActionConfig<MessageTimeline["scrollback"]>
scrollback
{ data: { terminus: boolean; fromInclusiveMiniblockNum: bigint; } | undefined; error: Error | undefined; isPending: boolean; isSuccess: boolean; isError: boolean; scrollback: () => Promise<{ terminus: boolean; fromInclusiveMiniblockNum: bigint; }>; }
Was this page helpful?