alibaba / alibaba/hooks

useInterval,在页面最小化,或者切换到其他页面的时候,如何防止定时器暂停啊。

Open
#2,612 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
15k
Forks
2.8k
Avg merge
15h 7m
Merged PRs (30d)
2

Description

我现在碰到的问题,当页面切换的时候,原来的定时器就会暂停。

Contributor guide

Open the contributing guide

Research direction

Start at the useInterval entry point and reproduce the reported behavior when the page is minimized or switched away. The issue names no file, test, or expected implementation; done would require a confirmed behavior and an agreed change or guidance for handling paused timers.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.