From 1681f153ec913cdb1423f162ceaaffd1e011cef7 Mon Sep 17 00:00:00 2001 From: Konstantin Popov Date: Sun, 3 Oct 2021 19:17:57 +0300 Subject: [PATCH 1/2] Fix typo in renderer.js (react-devtools-shared) Fix typo: dehyration -> dehydration --- packages/react-devtools-shared/src/backend/legacy/renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-devtools-shared/src/backend/legacy/renderer.js b/packages/react-devtools-shared/src/backend/legacy/renderer.js index d799ce72a27..c5684f222fa 100644 --- a/packages/react-devtools-shared/src/backend/legacy/renderer.js +++ b/packages/react-devtools-shared/src/backend/legacy/renderer.js @@ -716,7 +716,7 @@ export function attach( // Any time an inspected element has an update, // we should update the selected $r value as wel. - // Do this before dehyration (cleanForBridge). + // Do this before dehydration (cleanForBridge). updateSelectedElement(id); inspectedElement.context = cleanForBridge( From aea9833e4855dd7ece82d10490613ef2b0913f54 Mon Sep 17 00:00:00 2001 From: Konstantin Popov Date: Wed, 20 Oct 2021 19:03:04 +0300 Subject: [PATCH 2/2] Fix typo in ReactTestUtils.js --- packages/react-dom/src/test-utils/ReactTestUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-dom/src/test-utils/ReactTestUtils.js b/packages/react-dom/src/test-utils/ReactTestUtils.js index 1aadc90b250..c83b072447b 100644 --- a/packages/react-dom/src/test-utils/ReactTestUtils.js +++ b/packages/react-dom/src/test-utils/ReactTestUtils.js @@ -178,7 +178,7 @@ function findAllInRenderedTree(inst, test) { } /** - * Finds all instance of components in the rendered tree that are DOM + * Finds all instances of components in the rendered tree that are DOM * components with the class name matching `className`. * @return {array} an array of all the matches. */ @@ -233,7 +233,7 @@ function findRenderedDOMComponentWithClass(root, className) { } /** - * Finds all instance of components in the rendered tree that are DOM + * Finds all instances of components in the rendered tree that are DOM * components with the tag name matching `tagName`. * @return {array} an array of all the matches. */