Skip to content

Commit 6400172

Browse files
committed
compiler: update comment on memo cache import code
ghstack-source-id: b6c98c7 Pull Request resolved: #29142
1 parent ecddf3c commit 6400172

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 'react'`), 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)