Enable InlineUseMemo in playground
Joe Savona committed
May 17, 2023 at 15:55 UTC
7831ac21892b490226291192d0b501035a8e5147
1 file changed
+2
compiler/forget/packages/playground/components/Editor/index.tsx
+2
@@ -133,6 +133,8 @@ function compile(source: string): CompilerOutput {
133
for (const result of run(fn, {
134
customHooks: new Map([...COMMON_HOOKS]),
135
validateHooksUsage: true,
136
+ inlineUseMemo: true,
137
+ memoizeJsxElements: true,
138
})) {
139
const fnName = fn.node.id?.name ?? null;
140
switch (result.kind) {