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

This commit is contained in:
Julien Valverdé
2025-05-25 03:54:14 +02:00
parent 27f50db664
commit 8d52443b55

View File

@@ -188,11 +188,10 @@ export const run = <K extends readonly unknown[], A, E>(
if (typeof window !== "undefined" && (options?.refreshOnWindowFocus ?? true))
yield* Stream.runForEach(BrowserStream.fromEventListenerWindow("focus"), () => self.forkRefresh)
yield* Effect.addFinalizer(() => self.interrupt).pipe(
Effect.andThen(Stream.runForEach(Stream.changes(self.queryKey), latestKey =>
yield* Effect.addFinalizer(() => self.interrupt)
yield* Stream.runForEach(Stream.changes(self.queryKey), latestKey =>
Ref.set(self.latestKeyRef, Option.some(latestKey)).pipe(
Effect.andThen(self.forkFetch)
)
))
)
})