KEMBAR78
SchedulerPostTask: Reuse original TaskController by noahlemen · Pull Request #27595 · facebook/react · GitHub
Skip to content

Conversation

@noahlemen
Copy link
Contributor

Summary

It's not clear to me why we currently create a new TaskController in runTask – ultimately, we use the same signal and priority from the original created in unstable_scheduleCallback

How did you test this change?

yarn test SchedulerPostTask

@noahlemen noahlemen requested review from acdlite and kassens October 26, 2023 20:30
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Oct 26, 2023
@noahlemen noahlemen merged commit a17467e into main Nov 2, 2023
@noahlemen noahlemen deleted the noahlemen-taskcontroller-cleanup branch November 2, 2023 15:03
github-actions bot pushed a commit that referenced this pull request Nov 2, 2023
## Summary

It's not clear to me why we currently create a new TaskController in
`runTask` – ultimately, we use the same signal and priority from the
original created in `unstable_scheduleCallback`

## How did you test this change?
```
yarn test SchedulerPostTask
```

DiffTrain build for [a17467e](a17467e)
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
## Summary

It's not clear to me why we currently create a new TaskController in
`runTask` – ultimately, we use the same signal and priority from the
original created in `unstable_scheduleCallback`

## How did you test this change?
```
yarn test SchedulerPostTask
```
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
## Summary

It's not clear to me why we currently create a new TaskController in
`runTask` – ultimately, we use the same signal and priority from the
original created in `unstable_scheduleCallback`

## How did you test this change?
```
yarn test SchedulerPostTask
```

DiffTrain build for commit a17467e.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants