Chat Viewer
    Preparing search index...

    Function followAlways

    • A helper function that creates a callback to scroll to the bottom of the chat viewer. It returns a generic ChatCallback that can be used with the chat viewer.

      This function handles layout shifts that may occur after scrolling (e.g., when content like delimiters is rendered asynchronously). It monitors scrollSize changes and re-scrolls until the content stabilizes, ensuring the bottom remains visible.

      Type Parameters

      Parameters

      • opts: ScrollToIndexOpts = DEFAULT_SCROLL_OPTS

        ScrollToItemOpts options for controlling the scroll behavior

      Returns ChatCallback<M>

      A callback that performs the scroll action.