GeezerVison is showing github.com — Re-land refactored implementation of layout phase in new fork by acdlite · Pull Request #20595 · react/react
Conversation
Converts the layout effect phase to the new implementation.
As when I re-landed the passive phase, this doesn't exactly match the implementation we originally tried to land. I aimed for the minimum possible delta needed to move away from the effect list. So it doesn't include the recursive JS stack implementation, or the changes to profiler duration tracking. We can add those back later — the priority is to get rid of the effect list.
Only affects the new fork.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
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 d75105b:
| Sandbox |
Source |
| React |
Configuration |
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Details of bundled changes.
Comparing: 42e04b4...d75105b
react-dom
| File |
Filesize Diff |
Gzip Diff |
Prev Size |
Current Size |
Prev Gzip |
Current Gzip |
ENV |
| ReactDOM-profiling.js |
0.0% |
0.0% |
396.8 KB |
396.8 KB |
73.46 KB |
73.46 KB |
FB_WWW_PROFILING |
| react-dom-server.browser.development.js |
0.0% |
0.0% |
145.08 KB |
145.08 KB |
36.93 KB |
36.93 KB |
UMD_DEV |
| react-dom-server.browser.production.min.js |
0.0% |
0.0% |
20.42 KB |
20.42 KB |
7.57 KB |
7.58 KB |
UMD_PROD |
| ReactDOMTesting-prod.js |
0.0% |
-0.0% |
373.37 KB |
373.37 KB |
70.71 KB |
70.71 KB |
FB_WWW_PROD |
| react-dom.production.min.js |
0.0% |
0.0% |
125.51 KB |
125.51 KB |
41.1 KB |
41.1 KB |
UMD_PROD |
| react-dom.profiling.min.js |
0.0% |
0.0% |
131.17 KB |
131.17 KB |
42.81 KB |
42.81 KB |
UMD_PROFILING |
| react-dom.development.js |
0.0% |
0.0% |
935.32 KB |
935.32 KB |
211.97 KB |
211.97 KB |
NODE_DEV |
| ReactDOMForked-dev.js |
+0.1% |
+0.1% |
987.41 KB |
988.66 KB |
220.06 KB |
220.31 KB |
FB_WWW_DEV |
| react-dom.production.min.js |
0.0% |
0.0% |
125.7 KB |
125.7 KB |
40.38 KB |
40.38 KB |
NODE_PROD |
| ReactDOMForked-prod.js |
🔺+1.0% |
🔺+1.0% |
379.2 KB |
383.09 KB |
70.32 KB |
71.05 KB |
FB_WWW_PROD |
| react-dom.profiling.min.js |
0.0% |
0.0% |
131.58 KB |
131.58 KB |
42.1 KB |
42.1 KB |
NODE_PROFILING |
| ReactDOMForked-profiling.js |
+1.2% |
+1.1% |
396.81 KB |
401.75 KB |
73.46 KB |
74.28 KB |
FB_WWW_PROFILING |
| react-dom-unstable-fizz.browser.development.js |
0.0% |
+0.1% |
4.68 KB |
4.68 KB |
1.66 KB |
1.66 KB |
NODE_DEV |
| ReactDOM-dev.js |
0.0% |
0.0% |
987.4 KB |
987.4 KB |
220.03 KB |
220.03 KB |
FB_WWW_DEV |
| react-dom-unstable-fizz.browser.production.min.js |
0.0% |
🔺+0.2% |
1.01 KB |
1.01 KB |
616 B |
617 B |
NODE_PROD |
| react-dom-server.browser.production.min.js |
0.0% |
0.0% |
20.33 KB |
20.33 KB |
7.53 KB |
7.53 KB |
NODE_PROD |
| react-dom-test-utils.development.js |
0.0% |
0.0% |
71.37 KB |
71.37 KB |
19.33 KB |
19.33 KB |
UMD_DEV |
| react-dom-test-utils.development.js |
0.0% |
0.0% |
66.18 KB |
66.18 KB |
18.81 KB |
18.81 KB |
NODE_DEV |
| ReactDOMTesting-dev.js |
0.0% |
0.0% |
920.34 KB |
920.34 KB |
207.26 KB |
207.26 KB |
FB_WWW_DEV |
ReactDOM: size: 0.0%, gzip: 0.0%
Size changes (experimental)
Generated by 🚫 dangerJS against d75105b
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Details of bundled changes.
Comparing: 42e04b4...d75105b
react-dom
| File |
Filesize Diff |
Gzip Diff |
Prev Size |
Current Size |
Prev Gzip |
Current Gzip |
ENV |
| ReactDOM-profiling.js |
0.0% |
-0.0% |
408.27 KB |
408.27 KB |
75.33 KB |
75.33 KB |
FB_WWW_PROFILING |
| react-dom-server.browser.development.js |
0.0% |
0.0% |
143.17 KB |
143.17 KB |
36.67 KB |
36.67 KB |
UMD_DEV |
| react-dom-server.node.development.js |
0.0% |
0.0% |
137.09 KB |
137.09 KB |
36.46 KB |
36.46 KB |
NODE_DEV |
| react-dom-test-utils.production.min.js |
0.0% |
-0.0% |
13.68 KB |
13.68 KB |
5.26 KB |
5.26 KB |
NODE_PROD |
| ReactDOMTesting-prod.js |
0.0% |
0.0% |
386.59 KB |
386.59 KB |
72.92 KB |
72.92 KB |
FB_WWW_PROD |
| react-dom.development.js |
0.0% |
0.0% |
930.28 KB |
930.28 KB |
204.69 KB |
204.69 KB |
UMD_DEV |
| react-dom.production.min.js |
0.0% |
0.0% |
119.15 KB |
119.15 KB |
39.1 KB |
39.1 KB |
UMD_PROD |
| react-dom.profiling.min.js |
0.0% |
0.0% |
123.25 KB |
123.25 KB |
40.36 KB |
40.36 KB |
UMD_PROFILING |
| react-dom.development.js |
0.0% |
0.0% |
885.3 KB |
885.3 KB |
202.04 KB |
202.04 KB |
NODE_DEV |
| ReactDOMForked-dev.js |
+0.1% |
+0.1% |
1012.99 KB |
1014.24 KB |
224.83 KB |
225.09 KB |
FB_WWW_DEV |
| react-dom.production.min.js |
0.0% |
0.0% |
119.28 KB |
119.28 KB |
38.35 KB |
38.35 KB |
NODE_PROD |
| ReactDOMForked-prod.js |
🔺+1.0% |
🔺+1.0% |
390.61 KB |
394.5 KB |
72.18 KB |
72.91 KB |
FB_WWW_PROD |
| react-dom.profiling.min.js |
0.0% |
0.0% |
123.54 KB |
123.54 KB |
39.57 KB |
39.57 KB |
NODE_PROFILING |
| ReactDOMForked-profiling.js |
+1.2% |
+1.1% |
408.28 KB |
413.22 KB |
75.33 KB |
76.13 KB |
FB_WWW_PROFILING |
| react-dom-test-utils.development.js |
0.0% |
0.0% |
71.36 KB |
71.36 KB |
19.32 KB |
19.32 KB |
UMD_DEV |
| ReactDOMServer-dev.js |
0.0% |
0.0% |
146.3 KB |
146.3 KB |
37.57 KB |
37.57 KB |
FB_WWW_DEV |
| ReactDOMServer-prod.js |
0.0% |
0.0% |
47.44 KB |
47.44 KB |
11.06 KB |
11.06 KB |
FB_WWW_PROD |
| react-dom-test-utils.development.js |
0.0% |
0.0% |
66.17 KB |
66.17 KB |
18.8 KB |
18.81 KB |
NODE_DEV |
| ReactDOMTesting-dev.js |
0.0% |
0.0% |
948.68 KB |
948.68 KB |
212.92 KB |
212.92 KB |
FB_WWW_DEV |
Size changes (stable)
Generated by 🚫 dangerJS against d75105b
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
) {
|
|
|
try {
|
|
|
startLayoutEffectTimer();
|
|
|
if ((finishedWork.flags & (Update | Callback)) !== NoFlags) {
|
acdlite
Jan 15, 2021
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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.
Regarding the diff in this file, Git got confused by an indentation change. I left some comments with explanations, but accidentally put them on the next PR instead of this one. Basically, it's just whitespace: #20596 (comment)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
koto
pushed a commit
to koto/react
that referenced
this pull request
Jun 15, 2021
koto
pushed a commit
to koto/react
that referenced
this pull request
Jun 15, 2021
Reviewers
bvaughn
Awaiting requested review from bvaughn
1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|