@webshop/root - v1.0.0
    Preparing search index...

    Debouncer class that can be used to prevent too many api calls or database connections at once.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    _debounceTimer: Timeout | null = null

    Methods

    • The debounce function that waits till a timer is run out without any more inputs before activating a function

      Parameters

      • yourFunction: () => void

        the function you want to debounce

      • delayInMilliSec: number

        the time in milliseconds you want the debouncer to wait before activating a function

      Returns void