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

Was this helpful?

  1. Advanced

Interval

PreviousCallbackNextOptions

Last updated 1 year ago

Was this helpful?

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

Type

number

Default value

1000

Description

Amount of milliseconds between each .

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

callback
self correction
callback
this page