compiler: update comment on memo cache import code
ghstack-source-id: b6c98c78854c9125bef504731515b9854c01960d Pull Request resolved: https://github.com/facebook/react/pull/29142
Joe Savona committed
May 17, 2024 at 11:02 UTC
640017231599b42b4c2436395e11c72fefe9015d
1 file changed
+1
-1
compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Imports.ts
+1
-1
@@ -94,7 +94,7 @@ function hasExistingNonNamespacedImportOfModule(
94
}
95
96
/*
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
98
* into the list of destructured variables.
99
*/
100
function addMemoCacheFunctionSpecifierToExistingImport(