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

[Float] Fix typo in ReactDOMResourceValidation.js #25798

Merged
merged 3 commits into from
Dec 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ export function validateURLKeyedUpdatedProps(
}
}
console.error(
'A %s with %s "%s" recieved new props with different values from the props used' +
'A %s with %s "%s" received new props with different values from the props used' +
' when this Resource was first rendered. React will only use the props provided when' +
' this resource was first rendered until a new %s is provided. Unlike conventional' +
' DOM elements, Resources instances do not have a one to one correspondence with Elements' +
Expand Down
4 changes: 2 additions & 2 deletions packages/react-dom/src/__tests__/ReactDOMFloat-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4711,7 +4711,7 @@ describe('ReactDOMFloat', () => {
expect(() => {
expect(Scheduler).toFlushWithoutYielding();
}).toErrorDev([
'Warning: A style Resource with href "foo" recieved new props with different values from the props used' +
'Warning: A style Resource with href "foo" received new props with different values from the props used' +
' when this Resource was first rendered. React will only use the props provided when' +
' this resource was first rendered until a new href is provided. Unlike conventional' +
' DOM elements, Resources instances do not have a one to one correspondence with Elements' +
Expand All @@ -4720,7 +4720,7 @@ describe('ReactDOMFloat', () => {
'\n data-something-extra: missing or null in latest props, "extra" in original props' +
'\n data-something-new: "new" in latest props, missing or null in original props' +
'\n precedence: "fu" in latest props, "foo" in original props',
'Warning: A script Resource with src "sfoo" recieved new props with different values from the props used' +
'Warning: A script Resource with src "sfoo" received new props with different values from the props used' +
' when this Resource was first rendered. React will only use the props provided when' +
' this resource was first rendered until a new src is provided. Unlike conventional' +
' DOM elements, Resources instances do not have a one to one correspondence with Elements' +
Expand Down