mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Comments from #1484
This commit is contained in:
@@ -97,7 +97,7 @@ export function inlineUseMemo(fn: HIRFunction): void {
|
||||
if (body === undefined) {
|
||||
CompilerError.invariant(
|
||||
"Expected first argument to useMemo() to be a function expression",
|
||||
fn.loc
|
||||
lambda.loc
|
||||
);
|
||||
}
|
||||
// We know this function is used for useMemo and can prune it later
|
||||
|
||||
Reference in New Issue
Block a user