-
Notifications
You must be signed in to change notification settings - Fork 47.4k
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
Less indirection in SchedulerWithReactIntegration #20800
Conversation
I originally kept the React PriorityLevel and Scheduler PriorityLevel types separate in case there was a versioning mismatch between the two modules. However, it looks like we're going to keep the Scheduler module private in the short to medium term, and longer term the public interface will match `postTask`. So I've removed the extra indirection (the switch statements that convert between the two types).
b26c555
to
f733695
Compare
Forgot we compare these numbers in a few places. Lemme think about this a bit more. |
Comparing: 47dd9f4...f733695 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: Expand to show
|
|
||
export function getCurrentPriorityLevel(): ReactPriorityLevel { | ||
switch (Scheduler_getCurrentPriorityLevel()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Busy night, eh Rick?
Closed by #21107 |
I originally kept the React PriorityLevel and Scheduler PriorityLevel types separate in case there was a versioning mismatch between the two modules. However, it looks like we're going to keep the Scheduler module private in the short to medium term, and longer term the public interface will match
postTask
. So I've removed the extra indirection (the switch statements that convert between the two types).