Function debouncedThrottledSignal

  • Create a signal where values are throttled and debounced

    Type Parameters

    • T extends undefined | string

    Parameters

    • inputSignal: Signal<T>

      The input value to throttle and debounce

    • throttleDelay: number = 1000

      The delay between value emissions during continual input

    • debounceDelay: number = 300

      The amount of time the input needs to settle before a value is emitted

    • Optionaloptions: {
          injector?: Injector;
      }

      Additional options

      • Optionalinjector?: Injector

    Returns Signal<T>