Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "autorunThrottled"

Index

Functions

Functions

autorunThrottled

  • autorunThrottled(func: () => void, delay: number, name?: undefined | string): () => void
  • Closely based on autorun with delay but with difference that the first execution happens synchronously. This allows delayedComputed to make stronger guarantees.

    Parameters

    • func: () => void

      The function to execute in reaction

        • (): void
        • Returns void

    • delay: number

      The minimum delay between executions

    • Optional name: undefined | string

      (optional) For MobX debug purposes

    Returns () => void

      • (): void
      • Returns void

Generated using TypeDoc