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

This commit is contained in:
Julien Valverdé
2025-03-03 19:42:33 +01:00
parent 9c96741c8e
commit 40e8bf6a1f
3 changed files with 15 additions and 7 deletions

View File

@@ -25,7 +25,7 @@ export const QueryExtension = ReffuseExtension.make(() => ({
this.useFork(() => Stream.runForEach(runner.fiberRef.changes, Console.log), [])
this.useFork(() => Effect.addFinalizer(() => runner.interrupt).pipe(
this.useEffect(() => Effect.addFinalizer(() => Effect.void).pipe(
Effect.andThen(Ref.set(runner.queryRef, props.effect())),
Effect.andThen(runner.forkFetch),
), [runner, ...props.deps])