diff --git a/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Pipeline.ts b/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Pipeline.ts index 0ae11aafe7..68179ba8d1 100644 --- a/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Pipeline.ts +++ b/compiler/packages/babel-plugin-react-forget/src/Entrypoint/Pipeline.ts @@ -7,7 +7,7 @@ import { NodePath } from "@babel/traverse"; import * as t from "@babel/types"; -import { lowerUseState } from "../Forest"; +import { lowerToForest } from "../Forest"; import { HIRFunction, ReactiveFunction, @@ -247,12 +247,7 @@ export function* run( }); if (config?.enableForest) { - lowerUseState(reactiveFunction); - yield log({ - kind: "reactive", - name: "LowerUseState", - value: reactiveFunction, - }); + yield* lowerToForest(reactiveFunction); } promoteUsedTemporaries(reactiveFunction);