Remove callbackId field from FiberRoot#19458
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 71681be:
|
Details of bundled changes.Comparing: c24b641...71681be react-dom
react-native-renderer
react-reconciler
react-art
react-test-renderer
ReactDOM: size: 0.0%, gzip: -0.0% Size changes (stable) |
Details of bundled changes.Comparing: c24b641...71681be react-dom
react-reconciler
react-art
react-test-renderer
react-native-renderer
ReactDOM: size: 0.0%, gzip: -0.0% Size changes (experimental) |
|
|
||
| // Determine the next lanes to work on, and their priority. | ||
| const newCallbackId = getNextLanes( | ||
| const nextLanes = getNextLanes( |
There was a problem hiding this comment.
Looks like the comment on line 681 (which references the expiration time) is out of date, should we update that as well?
| ); | ||
| } | ||
|
|
||
| root.callbackId = newCallbackId; |
There was a problem hiding this comment.
We used to update the root callbackId with the next lane, why don't we need to do anything with the next lane in the new version?
There was a problem hiding this comment.
It was only used by this function. Since we don't need it for the logic above anymore, we don't have to store it.
The old expiration times implementation used this field to infer when the priority of a task had changed at a more granular level than a Scheduler priority level. Now that we have the LanePriority type, which is React-specific, we no longer need the `callbackId` field.
13518ec to
71681be
Compare
The old expiration times implementation used this field to infer when the priority of a task had changed at a more granular level than a Scheduler priority level.
Now that we have the LanePriority type, which is React-specific, we no longer need the
callbackIdfield.