From 48bfc7ea4b78fc45afc643b8949f0d5b31309152 Mon Sep 17 00:00:00 2001 From: Ikko Ashimine Date: Sun, 4 Dec 2022 17:36:36 +0900 Subject: [PATCH 1/2] Fix typo in ReactDOMResourceValidation.js recieved -> received --- .../react-dom-bindings/src/shared/ReactDOMResourceValidation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-dom-bindings/src/shared/ReactDOMResourceValidation.js b/packages/react-dom-bindings/src/shared/ReactDOMResourceValidation.js index bd6f527cecc6c..dace0e1f96b47 100644 --- a/packages/react-dom-bindings/src/shared/ReactDOMResourceValidation.js +++ b/packages/react-dom-bindings/src/shared/ReactDOMResourceValidation.js @@ -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' + From 46d07ce6d16986b477715a550dc3f336c07c2d12 Mon Sep 17 00:00:00 2001 From: Ikko Ashimine Date: Thu, 8 Dec 2022 09:47:59 +0900 Subject: [PATCH 2/2] Fix typo in ReactDOMFloat-test.js --- packages/react-dom/src/__tests__/ReactDOMFloat-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-dom/src/__tests__/ReactDOMFloat-test.js b/packages/react-dom/src/__tests__/ReactDOMFloat-test.js index 6ce5b6617876d..100036b2a5030 100644 --- a/packages/react-dom/src/__tests__/ReactDOMFloat-test.js +++ b/packages/react-dom/src/__tests__/ReactDOMFloat-test.js @@ -4710,7 +4710,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' + @@ -4719,7 +4719,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' +