dillon1000/react

Commit

Remove wasteful checks from `shouldYield`

`shouldYield` will currently return `true` if there's a higher priority
task in the Scheduler queue.

Since we yield every 5ms anyway, this doesn't really have any practical
benefit. On the contrary, the extra checks on every `shouldYield` call
are wasteful.
Browse files
Changed paths3 files
First-parent comparison
M packages/react/src/__tests__/ReactProfiler-test.internal.js ModifiedM packages/scheduler/src/Scheduler.js ModifiedM packages/scheduler/src/__tests__/Scheduler-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…