GeezerVison is showing github.com — Convert ReactDOMTestSelectors-test.js to createRoot by rickhanlonii · Pull Request #27993 · react/react
Conversation
Straightforward adding createRoot and act
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
tadanobutubutu reacted with heart emoji
|
|
React = require('react');
|
|
|
act = React.unstable_act;
|
|
|
createRoot = require('react-dom/client').createRoot;
|
|
|
act = require('internal-test-utils').act;
|
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.
|
|
]);
|
|
|
|
|
|
act(() => increment());
|
|
|
await act(() => increment());
|
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.
|
|
]);
|
|
|
|
|
|
act(() => increment());
|
|
|
await act(() => increment());
|
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.
|
Comparing: 1d5667a...0fe7627
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 0fe7627
|
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Actually looks like some test failures that need to be fixed before merging.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Damn I thought i could sneak the failures by you
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
version,
|
|
|
} from './index.js';
|
|
|
|
|
|
export {createRoot, hydrateRoot} from './client.js';
|
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.
Heads up @gnoff, I needed to update the imports in the unstable_testing entrypoints so using create/hydrateRoot doesn't error. Let me know if there are any concerns, but I think this is what we want to do, at least while this is unstable.
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
EdisonVan
pushed a commit
to EdisonVan/react
that referenced
this pull request
Apr 15, 2024
Straightforward adding createRoot and act
bigfootjon
pushed a commit
that referenced
this pull request
Apr 18, 2024
Straightforward adding createRoot and act
DiffTrain build for commit 4217d32.
hanzo-dev
pushed a commit
to hanzoai/react
that referenced
this pull request
Sep 9, 2026
Straightforward adding createRoot and act
Reviewers
1 more reviewer
kassens
kassens approved these changes
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.
|