Skip to content

setTimeout execute immediately at 1e12; This causes useRaf not working. #779

@cnwangjie

Description

@cnwangjie

What is the current behavior?

useRaf not working at the default. After some testing, I found setTimeout execute immediately at 1e12.

image

https://codesandbox.io/s/silly-shadow-0vq5c?fontsize=14&hidenavigation=1&theme=dark

What is the expected behavior?

A little about versions:

  • OS: macOS Mojave
  • Browser (vendor and version): Chrome 80.0.3968.0
  • React: any version
  • react-use: 13.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions