Skip to content

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented Jul 19, 2023

Tidying up some redundant code left from previous iterations of the implementation

acdlite added 2 commits July 19, 2023 14:07
This is always `true` now, so we can delete it.
This is always `flushWork` so we can just call that directly.
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Jul 19, 2023
@react-sizebot
Copy link

Comparing: d445cee...4a7dbbc

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 164.38 kB 164.38 kB = 51.77 kB 51.77 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 171.79 kB 171.79 kB = 53.99 kB 53.99 kB
facebook-www/ReactDOM-prod.classic.js = 567.40 kB 567.40 kB = 100.10 kB 100.10 kB
facebook-www/ReactDOM-prod.modern.js = 551.20 kB 551.20 kB = 97.26 kB 97.26 kB
oss-experimental/scheduler/cjs/scheduler.development.js = 18.04 kB 17.64 kB = 5.08 kB 5.03 kB
oss-stable-semver/scheduler/cjs/scheduler.development.js = 18.04 kB 17.64 kB = 5.08 kB 5.03 kB
oss-stable/scheduler/cjs/scheduler.development.js = 18.04 kB 17.64 kB = 5.08 kB 5.03 kB
oss-experimental/scheduler/cjs/scheduler.native.development.js = 17.64 kB 17.24 kB = 4.87 kB 4.81 kB
oss-stable-semver/scheduler/cjs/scheduler.native.development.js = 17.64 kB 17.24 kB = 4.87 kB 4.81 kB
oss-stable/scheduler/cjs/scheduler.native.development.js = 17.64 kB 17.24 kB = 4.87 kB 4.81 kB
facebook-react-native/scheduler/cjs/Scheduler-dev.js = 18.12 kB 17.70 kB = 5.13 kB 5.06 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-experimental/react/umd/react.development.js = 125.63 kB 125.21 kB = 32.42 kB 32.37 kB
oss-stable/react/umd/react.development.js = 123.37 kB 122.95 kB = 31.87 kB 31.81 kB
oss-stable-semver/react/umd/react.development.js = 123.35 kB 122.93 kB = 31.84 kB 31.78 kB
oss-experimental/react/umd/react.production.min.js = 12.99 kB 12.92 kB = 4.98 kB 4.96 kB
oss-experimental/react/umd/react.profiling.min.js = 12.99 kB 12.92 kB = 4.98 kB 4.96 kB
oss-stable/react/umd/react.production.min.js = 12.20 kB 12.13 kB = 4.76 kB 4.72 kB
oss-stable/react/umd/react.profiling.min.js = 12.20 kB 12.13 kB = 4.76 kB 4.72 kB
oss-stable-semver/react/umd/react.production.min.js = 12.18 kB 12.10 kB = 4.73 kB 4.69 kB
oss-stable-semver/react/umd/react.profiling.min.js = 12.18 kB 12.10 kB = 4.73 kB 4.69 kB
oss-experimental/scheduler/cjs/scheduler.native.production.min.js = 4.73 kB 4.65 kB = 1.74 kB 1.71 kB
oss-stable-semver/scheduler/cjs/scheduler.native.production.min.js = 4.73 kB 4.65 kB = 1.74 kB 1.71 kB
oss-stable/scheduler/cjs/scheduler.native.production.min.js = 4.73 kB 4.65 kB = 1.74 kB 1.71 kB
oss-experimental/scheduler/cjs/scheduler.production.min.js = 4.30 kB 4.23 kB = 1.80 kB 1.77 kB
oss-stable-semver/scheduler/cjs/scheduler.production.min.js = 4.30 kB 4.23 kB = 1.80 kB 1.77 kB
oss-stable/scheduler/cjs/scheduler.production.min.js = 4.30 kB 4.23 kB = 1.80 kB 1.77 kB
facebook-www/Scheduler-dev.classic.js = 25.64 kB 25.20 kB = 6.78 kB 6.72 kB
facebook-www/Scheduler-dev.modern.js = 25.64 kB 25.20 kB = 6.78 kB 6.72 kB
oss-experimental/scheduler/cjs/scheduler.development.js = 18.04 kB 17.64 kB = 5.08 kB 5.03 kB
oss-stable-semver/scheduler/cjs/scheduler.development.js = 18.04 kB 17.64 kB = 5.08 kB 5.03 kB
oss-stable/scheduler/cjs/scheduler.development.js = 18.04 kB 17.64 kB = 5.08 kB 5.03 kB
oss-experimental/scheduler/cjs/scheduler.native.development.js = 17.64 kB 17.24 kB = 4.87 kB 4.81 kB
oss-stable-semver/scheduler/cjs/scheduler.native.development.js = 17.64 kB 17.24 kB = 4.87 kB 4.81 kB
oss-stable/scheduler/cjs/scheduler.native.development.js = 17.64 kB 17.24 kB = 4.87 kB 4.81 kB
facebook-react-native/scheduler/cjs/Scheduler-dev.js = 18.12 kB 17.70 kB = 5.13 kB 5.06 kB

Generated by 🚫 dangerJS against 4a7dbbc

Copy link
Member

@kassens kassens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neat

@acdlite acdlite merged commit 899cb95 into facebook:main Jul 19, 2023
github-actions bot pushed a commit that referenced this pull request Jul 19, 2023
Tidying up some redundant code left from previous iterations of the
implementation

DiffTrain build for [899cb95](899cb95)
callback: (hasTimeRemaining: boolean, initialTime: number) => boolean,
) {
scheduledHostCallback = callback;
function requestHostCallback(callback: (initialTime: number) => boolean) {
Copy link
Contributor

@tjallingt tjallingt Jul 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- function requestHostCallback(callback: (initialTime: number) => boolean) {
+ function requestHostCallback() {

Now flushWork is called directly but its still passed as the argument to requestHostCallback everywhere but its unused.

PR here #27133

noahlemen pushed a commit that referenced this pull request Jul 20, 2023
Noticed this argument was left in the cleanup from
#27130
It seems to me like it would benefit from being cleaned up too.
github-actions bot pushed a commit that referenced this pull request Jul 20, 2023
Noticed this argument was left in the cleanup from
#27130
It seems to me like it would benefit from being cleaned up too.

DiffTrain build for [587ae49](587ae49)
jerrydev0927 added a commit to jerrydev0927/react that referenced this pull request Jan 5, 2024
Noticed this argument was left in the cleanup from
facebook/react#27130
It seems to me like it would benefit from being cleaned up too.

DiffTrain build for [587ae49d71f218d34393291933d513d2975e22c3](facebook/react@587ae49)
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
…book#27130)

Tidying up some redundant code left from previous iterations of the
implementation
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
…book#27133)

Noticed this argument was left in the cleanup from
facebook#27130
It seems to me like it would benefit from being cleaned up too.
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
Tidying up some redundant code left from previous iterations of the
implementation

DiffTrain build for commit 899cb95.
Akshato07 pushed a commit to Akshato07/-Luffy that referenced this pull request Feb 20, 2025
Noticed this argument was left in the cleanup from
facebook/react#27130
It seems to me like it would benefit from being cleaned up too.

DiffTrain build for commit facebook/react@587ae49.
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.

5 participants