React interval hook
  • Introduction
  • Installation
  • Basics
  • Advanced
    • Definition
    • Callback
    • Interval
    • Options
      • Configuration
        • Auto start
        • Immediate callback call
        • Self correction
      • Callbacks
        • On finish
    • Hook result / Controls
      • Start
      • Stop
      • Is active
  • Examples
    • Advanced usage
    • Live demo
      • Version 1
  • Migration
    • Change log
Powered by GitBook
On this page
  1. Advanced

Interval

PreviousCallbackNextOptions

Last updated 1 year ago

Was this helpful?

CtrlK

Was this helpful?

useInterval(callback, interval [, options]): controls

Type

number

Default value

1000

Description

Amount of milliseconds between each callback.

Callbacks are not guaranteed to be called exactly after specified amount. For more info see self correction and callback. For explanation why, see this page.