Fix
All checks were successful
Lint / lint (push) Successful in 13s

This commit is contained in:
Julien Valverdé
2025-05-08 01:28:41 +02:00
parent 39765102db
commit 10f23d4cb4

View File

@@ -487,12 +487,12 @@ export abstract class ReffuseNamespace<R> {
Stream.unwrapScoped, Stream.unwrapScoped,
)), )),
Effect.provideService(Scope.Scope, scope), Effect.provideService(Scope.Scope, scope),
), [scope]) ), [scope], { doNotReExecuteOnRuntimeOrContextChange: true })
this.useEffect(() => Ref.set(latest, values).pipe( this.useEffect(() => Ref.set(latest, values).pipe(
Effect.andThen(PubSub.publish(pubsub, values)), Effect.andThen(PubSub.publish(pubsub, values)),
Effect.unlessEffect(PubSub.isShutdown(pubsub)), Effect.unlessEffect(PubSub.isShutdown(pubsub)),
), values) ), values, { doNotReExecuteOnRuntimeOrContextChange: true })
return stream return stream
} }