diff --git a/compiler/forget/packages/playground/components/Editor/index.tsx b/compiler/forget/packages/playground/components/Editor/index.tsx index 5714bd8720..5cd6f56deb 100644 --- a/compiler/forget/packages/playground/components/Editor/index.tsx +++ b/compiler/forget/packages/playground/components/Editor/index.tsx @@ -122,9 +122,11 @@ function compile(source: string): CompilerOutput { for (const fn of parseFunctions(source)) { for (const result of run(fn, { customHooks: new Map([...COMMON_HOOKS]), - validateHooksUsage: true, + enableAssumeHooksFollowRulesOfReact: true, + enableFunctionCallSignatureOptimizations: true, inlineUseMemo: true, memoizeJsxElements: true, + validateHooksUsage: true, })) { const fnName = fn.node.id?.name ?? null; switch (result.kind) {