Fix
Lint / lint (push) Successful in 13s

This commit is contained in:
Julien Valverdé
2025-10-23 16:20:30 +02:00
parent 3847686d54
commit c03d697361
2 changed files with 14 additions and 10 deletions
+2 -2
View File
@@ -33,13 +33,13 @@ export const useSubscribables: {
yield* Component.useOnMount(() => Effect.all(elements.map(v => v.get)))
)
yield* Component.useOnChange(() => Effect.forkScoped(pipe(
yield* Component.useReactEffect(() => Effect.forkScoped(pipe(
elements.map(ref => Stream.changesWith(ref.changes, Equivalence.strict())),
streams => Stream.zipLatestAll(...streams),
Stream.runForEach(v =>
Effect.sync(() => setReactStateValue(v))
),
)), elements)
)), elements, { finalizerExecutionMode: "fork" })
return reactStateValue as any
})