Skip to content

Commit 0f02de2

Browse files
committed
Update on "compiler: update comment on memo cache import code"
Fixes a stale comment since this caused confusion in #29057 (comment) [ghstack-poisoned]
1 parent 19bf400 commit 0f02de2

File tree

1 file changed

+1
-1
lines changed
  • compiler/packages/babel-plugin-react-compiler/src/Entrypoint

1 file changed

+1
-1
lines changed

compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Imports.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function hasExistingNonNamespacedImportOfModule(
9494
}
9595

9696
/*
97-
* If an existing import of React exists (ie `import {useMemo} from '<runtimeModule>'`), inject useMemoCache
97+
* If an existing import of React exists (ie `import { ... } from '<moduleName>'`), inject useMemoCache
9898
* into the list of destructured variables.
9999
*/
100100
function addMemoCacheFunctionSpecifierToExistingImport(

0 commit comments

Comments
 (0)