mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Enable more flags on playground
This commit is contained in:
1 parent
91dcf24e67
commit
99257aa430
1 file changed
+3
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user