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

Revert #14756 changes to ReactFiberScheduler #14992

Merged
merged 2 commits into from Mar 1, 2019

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented Mar 1, 2019

#14756 PR introduced some bugs in concurrent mode during internal testing. I believe it's specifically related to the changes to ReactFiberScheduler. Until we figure out a proper solution, I'm going to try reverting it.

Not totally certain this is sufficient to unbreak the bugs we found, but I'm using this branch to determine that.

This PR introduced some bugs in concurrent mode during internal testing.
Until we figure out a proper solution, I'm going to try reverting it.

Not totally certain this is sufficient to unbreak the bugs we found, but
I'm using this branch to determine that.
@@ -172,19 +171,6 @@ export type Thenable = {
then(resolve: () => mixed, reject?: () => mixed): mixed,
};

// Intentionally not named imports because Rollup would
Copy link
Collaborator

Choose a reason for hiding this comment

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

Mind keeping these?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

They're not being used in this module anymore. Do you mean comment these lines out?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll comment them out so we don't forget next time we import Scheduler in this module

@sizebot
Copy link

sizebot commented Mar 1, 2019

ReactDOM: size: -0.5%, gzip: 🔺+0.3%

Details of bundled changes.

Comparing: 59ef284...fbc9284

react-dom

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-dom.development.js 0.0% 0.0% 774.84 KB 775.11 KB 176.32 KB 176.39 KB UMD_DEV
react-dom.production.min.js -0.5% 🔺+0.3% 105.39 KB 104.9 KB 33.97 KB 34.07 KB UMD_PROD
react-dom.profiling.min.js -0.4% -0.4% 108.31 KB 107.9 KB 34.86 KB 34.73 KB UMD_PROFILING
react-dom.development.js 0.0% 0.0% 769.29 KB 769.49 KB 174.82 KB 174.87 KB NODE_DEV
react-dom.production.min.js -0.4% 🔺+0.4% 105.27 KB 104.87 KB 33.42 KB 33.55 KB NODE_PROD
react-dom.profiling.min.js -0.3% -0.3% 108.33 KB 107.97 KB 34.26 KB 34.16 KB NODE_PROFILING
ReactDOM-dev.js 0.0% 0.0% 792.19 KB 792.36 KB 175.96 KB 176.01 KB FB_WWW_DEV
ReactDOM-prod.js -0.4% 0.0% 322.22 KB 321.03 KB 58.81 KB 58.81 KB FB_WWW_PROD
ReactDOM-profiling.js -0.1% -0.1% 327.3 KB 326.91 KB 60.17 KB 60.08 KB FB_WWW_PROFILING
react-dom-unstable-fire.development.js 0.0% 0.0% 775.19 KB 775.46 KB 176.46 KB 176.53 KB UMD_DEV
react-dom-unstable-fire.production.min.js -0.5% 🔺+0.3% 105.41 KB 104.92 KB 33.97 KB 34.08 KB UMD_PROD
react-dom-unstable-fire.profiling.min.js -0.4% -0.4% 108.33 KB 107.92 KB 34.87 KB 34.74 KB UMD_PROFILING
react-dom-unstable-fire.development.js 0.0% 0.0% 769.64 KB 769.84 KB 174.96 KB 175.01 KB NODE_DEV
react-dom-unstable-fire.production.min.js -0.4% 🔺+0.4% 105.28 KB 104.89 KB 33.43 KB 33.55 KB NODE_PROD
react-dom-unstable-fire.profiling.min.js -0.3% -0.3% 108.35 KB 107.98 KB 34.27 KB 34.17 KB NODE_PROFILING
ReactFire-dev.js 0.0% 0.0% 791.4 KB 791.57 KB 175.92 KB 175.97 KB FB_WWW_DEV
ReactFire-prod.js -0.3% 0.0% 310.65 KB 309.57 KB 56.46 KB 56.46 KB FB_WWW_PROD
ReactFire-profiling.js -0.1% -0.2% 315.93 KB 315.54 KB 57.82 KB 57.72 KB FB_WWW_PROFILING
react-dom-test-utils.production.min.js 0.0% -0.1% 10.27 KB 10.27 KB 3.8 KB 3.8 KB UMD_PROD
react-dom-test-utils.development.js 0.0% -0.0% 46.78 KB 46.78 KB 12.92 KB 12.92 KB NODE_DEV
react-dom-test-utils.production.min.js 0.0% -0.1% 10.05 KB 10.05 KB 3.73 KB 3.73 KB NODE_PROD
react-dom-unstable-native-dependencies.development.js 0.0% -0.0% 60.61 KB 60.61 KB 15.92 KB 15.92 KB UMD_DEV
react-dom-unstable-native-dependencies.production.min.js 0.0% -0.1% 11.01 KB 11.01 KB 3.81 KB 3.81 KB UMD_PROD
react-dom-unstable-native-dependencies.development.js 0.0% -0.0% 60.28 KB 60.28 KB 15.79 KB 15.79 KB NODE_DEV
react-dom-unstable-native-dependencies.production.min.js 0.0% -0.0% 10.75 KB 10.75 KB 3.71 KB 3.71 KB NODE_PROD
react-dom-server.browser.development.js 0.0% -0.0% 127.39 KB 127.39 KB 33.95 KB 33.95 KB UMD_DEV
react-dom-server.browser.production.min.js 0.0% -0.0% 18.89 KB 18.89 KB 7.22 KB 7.22 KB UMD_PROD
react-dom-server.browser.development.js 0.0% -0.0% 123.52 KB 123.52 KB 33.02 KB 33.02 KB NODE_DEV
react-dom-server.browser.production.min.js 0.0% -0.0% 18.81 KB 18.81 KB 7.21 KB 7.21 KB NODE_PROD
ReactDOMServer-dev.js 0.0% -0.0% 124.37 KB 124.37 KB 32.47 KB 32.47 KB FB_WWW_DEV
ReactDOMServer-prod.js 0.0% 0.0% 45.27 KB 45.27 KB 10.43 KB 10.43 KB FB_WWW_PROD
react-dom-server.node.development.js 0.0% -0.0% 125.58 KB 125.58 KB 33.56 KB 33.56 KB NODE_DEV
react-dom-unstable-fizz.browser.development.js 0.0% -0.1% 3.63 KB 3.63 KB 1.44 KB 1.44 KB UMD_DEV
react-dom-unstable-fizz.browser.production.min.js 0.0% -0.1% 1.21 KB 1.21 KB 707 B 706 B UMD_PROD
react-dom-unstable-fizz.browser.development.js 0.0% -0.1% 3.45 KB 3.45 KB 1.39 KB 1.39 KB NODE_DEV
react-dom-unstable-fizz.browser.production.min.js 0.0% -0.2% 1.05 KB 1.05 KB 638 B 637 B NODE_PROD
react-dom-unstable-fizz.node.development.js 0.0% -0.1% 3.7 KB 3.7 KB 1.42 KB 1.42 KB NODE_DEV
react-dom-unstable-fizz.node.production.min.js 0.0% -0.3% 1.1 KB 1.1 KB 669 B 667 B NODE_PROD

react-art

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-art.development.js -0.0% -0.0% 550.97 KB 550.78 KB 119.54 KB 119.52 KB UMD_DEV
react-art.production.min.js -0.5% -0.0% 97.37 KB 96.9 KB 29.89 KB 29.87 KB UMD_PROD
react-art.development.js -0.1% -0.0% 481.92 KB 481.66 KB 102.28 KB 102.26 KB NODE_DEV
react-art.production.min.js -0.7% -0.2% 62.28 KB 61.83 KB 19.04 KB 19 KB NODE_PROD
ReactART-dev.js -0.1% -0.0% 491.1 KB 490.82 KB 101.52 KB 101.49 KB FB_WWW_DEV
ReactART-prod.js -0.3% 🔺+0.1% 195.57 KB 194.94 KB 33.12 KB 33.13 KB FB_WWW_PROD

react-native-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactNativeRenderer-dev.js 0.0% 0.0% 617.89 KB 617.92 KB 132.16 KB 132.18 KB RN_FB_DEV
ReactNativeRenderer-prod.js -0.3% 0.0% 247.01 KB 246.25 KB 43.12 KB 43.12 KB RN_FB_PROD
ReactNativeRenderer-profiling.js -0.4% -0.4% 253.36 KB 252.43 KB 44.69 KB 44.49 KB RN_FB_PROFILING
ReactNativeRenderer-dev.js 0.0% 0.0% 617.8 KB 617.83 KB 132.13 KB 132.15 KB RN_OSS_DEV
ReactNativeRenderer-prod.js -0.3% 0.0% 247.03 KB 246.26 KB 43.11 KB 43.12 KB RN_OSS_PROD
ReactNativeRenderer-profiling.js -0.4% -0.4% 253.38 KB 252.45 KB 44.68 KB 44.48 KB RN_OSS_PROFILING
ReactFabric-dev.js 0.0% 0.0% 608.74 KB 608.77 KB 129.88 KB 129.89 KB RN_FB_DEV
ReactFabric-prod.js -0.0% 🔺+0.1% 239.36 KB 239.32 KB 41.64 KB 41.68 KB RN_FB_PROD
ReactFabric-profiling.js -0.4% -0.5% 245.59 KB 244.66 KB 43.21 KB 43 KB RN_FB_PROFILING
ReactFabric-dev.js 0.0% 0.0% 608.65 KB 608.68 KB 129.83 KB 129.85 KB RN_OSS_DEV
ReactFabric-prod.js -0.0% 🔺+0.1% 239.36 KB 239.33 KB 41.63 KB 41.67 KB RN_OSS_PROD
ReactFabric-profiling.js -0.4% -0.5% 245.6 KB 244.67 KB 43.21 KB 43 KB RN_OSS_PROFILING

react-test-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-test-renderer.development.js -0.0% -0.0% 490.92 KB 490.68 KB 103.98 KB 103.96 KB UMD_DEV
react-test-renderer.production.min.js -0.8% -0.3% 63.44 KB 62.92 KB 19.37 KB 19.32 KB UMD_PROD
react-test-renderer.development.js -0.0% -0.0% 486.44 KB 486.22 KB 102.83 KB 102.81 KB NODE_DEV
react-test-renderer.production.min.js -0.7% -0.2% 63.07 KB 62.59 KB 19.09 KB 19.06 KB NODE_PROD
ReactTestRenderer-dev.js -0.0% -0.0% 496.44 KB 496.2 KB 102.47 KB 102.44 KB FB_WWW_DEV
react-test-renderer-shallow.development.js 0.0% -0.0% 37.2 KB 37.2 KB 9.5 KB 9.5 KB UMD_DEV
react-test-renderer-shallow.production.min.js 0.0% -0.0% 11.12 KB 11.12 KB 3.35 KB 3.35 KB UMD_PROD
react-test-renderer-shallow.development.js 0.0% -0.0% 31.5 KB 31.5 KB 8.14 KB 8.14 KB NODE_DEV
react-test-renderer-shallow.production.min.js 0.0% -0.1% 11.77 KB 11.77 KB 3.65 KB 3.65 KB NODE_PROD

react-reconciler

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-reconciler.development.js +0.1% +0.1% 479.13 KB 479.71 KB 100.61 KB 100.7 KB NODE_DEV
react-reconciler.production.min.js -0.6% 🔺+0.1% 63.43 KB 63.07 KB 18.83 KB 18.84 KB NODE_PROD
react-reconciler-persistent.development.js +0.1% +0.1% 477.33 KB 477.91 KB 99.89 KB 99.99 KB NODE_DEV
react-reconciler-persistent.production.min.js -0.6% 🔺+0.1% 63.44 KB 63.08 KB 18.83 KB 18.85 KB NODE_PROD
react-reconciler-reflection.development.js 0.0% -0.0% 15.76 KB 15.76 KB 4.98 KB 4.98 KB NODE_DEV
react-reconciler-reflection.production.min.js 0.0% -0.1% 2.7 KB 2.7 KB 1.23 KB 1.22 KB NODE_PROD

Generated by 🚫 dangerJS

@acdlite
Copy link
Collaborator Author

acdlite commented Mar 1, 2019

Ok after testing in a sandbox, I believe this fixes/unbreaks at least one of the bugs we found internally.

@acdlite acdlite marked this pull request as ready for review March 1, 2019 21:03
With a note not to use named imports next time we import Scheduler
in this module.
@acdlite acdlite merged commit 9d756d9 into facebook:master Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants