MCPcopy
hub / github.com/facebook/react / unstable_shouldYield

Function unstable_shouldYield

packages/scheduler/src/forks/SchedulerPostTask.js:61–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59
60// Always yield at the end of the frame.
61export function unstable_shouldYield(): boolean {
62 return getCurrentTime() >= deadline;
63}
64
65export function unstable_requestPaint() {
66 // Since we yield every frame regardless, `requestPaint` has no effect.

Callers

nothing calls this directly

Calls 1

getCurrentTimeFunction · 0.70

Tested by

no test coverage detected