@samitouri / QOS-React-2 / commits / 67b0cf8a8c

Comments from #1484

Joe Savona committed Apr 10, 2023 at 11:06 UTC 67b0cf8a8c966db6fa6bd1d99e3967d9957cc146
1 file changed +1 -1
compiler/forget/src/Inference/InlineUseMemo.ts
+1 -1
@@ -97,7 +97,7 @@ export function inlineUseMemo(fn: HIRFunction): void {
97 if (body === undefined) {
98 CompilerError.invariant(
99 "Expected first argument to useMemo() to be a function expression",
100 - fn.loc
100 + lambda.loc
101 );
102 }
103 // We know this function is used for useMemo and can prune it later