diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/InferReactiveScopeVariables.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/InferReactiveScopeVariables.ts index 436d3b48bf..0ff2638b31 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/InferReactiveScopeVariables.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/InferReactiveScopeVariables.ts @@ -154,13 +154,11 @@ function mayAllocate(env: Environment, instruction: Instruction): boolean { case "NextIterableOf": case "NextPropertyOf": case "Debugger": - case "Memoize": { - return false; - } + case "Memoize": case "UnaryExpression": case "BinaryExpression": case "PropertyLoad": { - return env.config.enableForest; + return false; } case "CallExpression": case "MethodCall": {