From 0481dddce801f254eb31e4972d25cf1037da0050 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Fri, 1 Nov 2024 15:25:16 -0400 Subject: [PATCH] prettier again lol --- .../src/Inference/InferEffectDependencies.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/compiler/packages/babel-plugin-react-compiler/src/Inference/InferEffectDependencies.ts b/compiler/packages/babel-plugin-react-compiler/src/Inference/InferEffectDependencies.ts index 367883254d..55a252f53e 100644 --- a/compiler/packages/babel-plugin-react-compiler/src/Inference/InferEffectDependencies.ts +++ b/compiler/packages/babel-plugin-react-compiler/src/Inference/InferEffectDependencies.ts @@ -29,11 +29,11 @@ export function inferEffectDependencies( if (value.kind === 'FunctionExpression') { fnExpressions.set(lvalue.identifier.id, value); } else if ( - /* - * This check is not final. Right now we only look for useEffects without a dependency array. - * This is likely not how we will ship this feature, but it is good enough for us to make progress - * on the implementation and test it. - */ + /* + * This check is not final. Right now we only look for useEffects without a dependency array. + * This is likely not how we will ship this feature, but it is good enough for us to make progress + * on the implementation and test it. + */ value.kind === 'CallExpression' && isUseEffectHookType(value.callee.identifier) && value.args.length === 1 && @@ -43,7 +43,9 @@ export function inferEffectDependencies( if (fnExpr != null) { const deps: ArrayExpression = { kind: 'ArrayExpression', - elements: fnExpr.loweredFunc.dependencies.filter(place => place.reactive), + elements: fnExpr.loweredFunc.dependencies.filter( + place => place.reactive, + ), loc: GeneratedSource, };