From 99257aa4303c09186ca9a99fe0cf4a5995d4bd96 Mon Sep 17 00:00:00 2001 From: Joe Savona Date: Tue, 23 May 2023 16:55:10 -0700 Subject: [PATCH] Enable more flags on playground --- .../forget/packages/playground/components/Editor/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {