Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SchedulerPostTask: Reuse original TaskController #27595

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

noahlemen
Copy link
Member

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

@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
36 checks passed
@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