From e3bb221ea96023e7f6e86b363cfdee12a97856b3 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Mon, 11 Oct 2021 14:11:41 +0800 Subject: [PATCH 1/2] chore: fix comment typo --- packages/react-server/src/ReactFizzHooks.js | 2 +- .../use-sync-external-store/src/useSyncExternalStoreExtra.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-server/src/ReactFizzHooks.js b/packages/react-server/src/ReactFizzHooks.js index 6370f61b37735..2596632652b43 100644 --- a/packages/react-server/src/ReactFizzHooks.js +++ b/packages/react-server/src/ReactFizzHooks.js @@ -218,7 +218,7 @@ export function resetHooksState(): void { } function getCacheForType(resourceType: () => T): T { - // TODO: This should silently mark this as client rendered since it's not necesssarily + // TODO: This should silently mark this as client rendered since it's not necessarily // considered an error. It needs to work for things like Flight though. throw new Error('Not implemented.'); } diff --git a/packages/use-sync-external-store/src/useSyncExternalStoreExtra.js b/packages/use-sync-external-store/src/useSyncExternalStoreExtra.js index aa4957b534753..ef7ea1716a48d 100644 --- a/packages/use-sync-external-store/src/useSyncExternalStoreExtra.js +++ b/packages/use-sync-external-store/src/useSyncExternalStoreExtra.js @@ -53,7 +53,7 @@ export function useSyncExternalStoreExtra( if (isEqual !== undefined) { // Even if the selector has changed, the currently rendered selection // may be equal to the new selection. We should attempt to reuse the - // current value if possible, to preserve downstream memoizations. + // current value if possible, to preserve downstream memorizations. if (inst.hasValue) { const currentSelection = inst.value; if (isEqual(currentSelection, nextSelection)) { From 742170f56d3ff2aeaaeeb248ba61f8d788d605c6 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Fri, 22 Oct 2021 04:29:15 +0000 Subject: [PATCH 2/2] restore correct spell --- .../use-sync-external-store/src/useSyncExternalStoreExtra.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/use-sync-external-store/src/useSyncExternalStoreExtra.js b/packages/use-sync-external-store/src/useSyncExternalStoreExtra.js index ef7ea1716a48d..aa4957b534753 100644 --- a/packages/use-sync-external-store/src/useSyncExternalStoreExtra.js +++ b/packages/use-sync-external-store/src/useSyncExternalStoreExtra.js @@ -53,7 +53,7 @@ export function useSyncExternalStoreExtra( if (isEqual !== undefined) { // Even if the selector has changed, the currently rendered selection // may be equal to the new selection. We should attempt to reuse the - // current value if possible, to preserve downstream memorizations. + // current value if possible, to preserve downstream memoizations. if (inst.hasValue) { const currentSelection = inst.value; if (isEqual(currentSelection, nextSelection)) {