dillon1000/react

Commit

set priority on TaskController instead of on postTask/yield (#27295)

## Summary

passing both a signal and a priority to `postTask`/`yield` in chrome
causes memory to spike and potentially causes OOMs. a fix for this has
landed in chrome 118, but we can avoid the issue in earlier versions by
setting priority on just the TaskController instead.

https://bugs.chromium.org/p/chromium/issues/detail?id=1469367

## How did you test this change?
```
yarn test SchedulerPostTask
```
Browse files
Changed paths2 files
First-parent comparison
M packages/scheduler/src/__tests__/SchedulerPostTask-test.js ModifiedM packages/scheduler/src/forks/SchedulerPostTask.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…