From 0ba00a0b4ff92211348709542e9bad621d11b4c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Tue, 10 Mar 2026 20:48:31 +0100 Subject: [PATCH] Make nonReactiveTags a Component option --- packages/effect-fc/src/Component.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/effect-fc/src/Component.ts b/packages/effect-fc/src/Component.ts index 5e74bf6..63ce0d5 100644 --- a/packages/effect-fc/src/Component.ts +++ b/packages/effect-fc/src/Component.ts @@ -88,7 +88,7 @@ const use = Effect.fnUntraced(function*

[] + /** * Specifies the execution strategy for finalizers when the component unmounts or its scope closes. * Determines whether finalizers execute sequentially or in parallel. @@ -119,14 +120,12 @@ export interface ComponentOptions { } export const defaultOptions: ComponentOptions = { + nonReactiveTags: [Tracer.ParentSpan], finalizerExecutionStrategy: ExecutionStrategy.sequential, finalizerExecutionDebounce: "100 millis", } -export const nonReactiveTags = [Tracer.ParentSpan] as const - - export const isComponent = (u: unknown): u is Component<{}, React.ReactNode, unknown, unknown> => Predicate.hasProperty(u, ComponentTypeId) export declare namespace make {