GeezerVison is showing github.com — Convert ReactFresh to createRoot by eps1lon · Pull Request #28170 · react/react
Conversation
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Comparing: 38ef167...6aea7f8
Critical size changes
Includes critical production bundles, as well as any change greater than 2%:
Significant size changes
Includes any change greater than 0.2%:
Expand to show
Generated by 🚫 dangerJS against 6aea7f8
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
expect(container.childNodes[1]).toBe(fallbackChild);
|
|
|
expect(primaryChild.textContent).toBe('Content 1');
|
|
|
expect(primaryChild.style.color).toBe('red');
|
|
|
expect(primaryChild.style.color).toBe('green');
|
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.
This test is no longer passing. Seems like it really can't patch both trees anymore. @gaearon Could you take a look if there's a legit bug or something we just can't test in new roots anymore.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
gaearon
Feb 3, 2024
•
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.
I'm not sure but I suspect maybe we don't bother re-rendering the invisible component because it's offscreen? I'd rephrase the test so that it doesn't assert that it has to be green or red here — I think the important part is that by the time we unsuspend, the color of the content is up-to-date. Until then, I think it doesn't really matter because it's unobservable.
Sorry, something went wrong.
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.
Test now reads "only patches the fallback tree while suspended"
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
eps1lon
Feb 2, 2024
•
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
gnoff
added a commit
to gnoff/next.js
that referenced
this pull request
Feb 6, 2024
gnoff
added a commit
to vercel/next.js
that referenced
this pull request
Feb 6, 2024
Reviewers
gaearon
gaearon approved these changes
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.
|