Fix
Lint / lint (push) Failing after 49s

This commit is contained in:
Julien Valverdé
2026-07-23 03:33:15 +02:00
parent d09c17e1c2
commit 71f66cd5bc
+3 -1
View File
@@ -28,8 +28,10 @@ export const useAll = Effect.fnUntraced(function* <const T extends readonly View
yield* Component.useOnMount(() => Effect.all(elements.map(View.get)))
)
yield* Component.useReactEffect(() => View.changes(View.zipLatestAll(...elements)).pipe(
yield* Component.useReactEffect(() => Stream.make(reactStateValue).pipe(
Stream.concat(View.changes(View.zipLatestAll(...elements))),
Stream.changesWith((options?.equivalence as Equivalence.Equivalence<any[]> | undefined) ?? Equivalence.Array(Equivalence.strictEqual())),
Stream.drop(1),
Stream.runForEach(v =>
Effect.sync(() => setReactStateValue(v))
),