Fix Async
Lint / lint (push) Failing after 42s

This commit is contained in:
Julien Valverdé
2026-07-23 04:58:41 +02:00
parent 3a25b1a34e
commit faac021527
2 changed files with 72 additions and 3 deletions
+9 -3
View File
@@ -1,6 +1,6 @@
/** biome-ignore-all lint/complexity/noBannedTypes: {} is the default type for React props */
/** biome-ignore-all lint/complexity/useArrowFunction: necessary for class prototypes */
import { Context, type Duration, Effect, Equivalence, Exit, Function, identity, Layer, Pipeable, Predicate, Scheduler, Scope, Tracer } from "effect"
import { Context, type Duration, Effect, Equivalence, Exit, Function, identity, Layer, Pipeable, Predicate, References, Scheduler, Scope, Tracer } from "effect"
import * as React from "react"
import * as ScopeRegistry from "./ScopeRegistry.js"
@@ -133,7 +133,7 @@ export interface ComponentOptions {
/**
* Context tags that should not trigger component remount when their values change.
*
* @default [Tracer.ParentSpan]
* @default [Tracer.ParentSpan, References.CurrentStackFrame, Scheduler.Scheduler, Layer.CurrentMemoMap, Scope.Scope]
*/
readonly nonReactiveTags: readonly Context.Key<any, any>[]
@@ -163,7 +163,13 @@ export interface ComponentOptions {
}
export const defaultOptions: ComponentOptions = {
nonReactiveTags: [Tracer.ParentSpan, Scheduler.Scheduler, Layer.CurrentMemoMap],
nonReactiveTags: [
Tracer.ParentSpan,
References.CurrentStackFrame,
Scheduler.Scheduler,
Layer.CurrentMemoMap,
Scope.Scope,
],
finalizerExecutionStrategy: "sequential",
finalizerExecutionDebounce: "100 millis",
scopeCommitTimeout: "1 minute",