Skip to main content

useScrollListener

Callable

  • useScrollListener(): (value: { throttle?: number }, callback: (result: ScrollListenerResult) => void) => () => void

  • Returns (value: { throttle?: number }, callback: (result: ScrollListenerResult) => void) => () => void

      • Parameters

        • value: { throttle?: number }
          • optionalthrottle: number
        • callback: (result: ScrollListenerResult) => void

          Returns () => void

            • (): void
            • Returns void