Skip to content

Commit

Permalink
don't interrupt queries
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Dec 4, 2024
1 parent a184ecc commit 2d385a4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/experimental/src/Reactivity.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* @since 1.0.0
*/
import * as Cause from "effect/Cause"
import * as Context from "effect/Context"
import * as Effect from "effect/Effect"
import * as Exit from "effect/Exit"
Expand Down Expand Up @@ -75,7 +74,6 @@ export const make = Effect.sync(() => {

const handledEffect = Effect.matchCause(effect, {
onFailure(cause) {
if (Cause.isInterruptedOnly(cause)) return
results.unsafeDone(Exit.failCause(cause))
},
onSuccess(a) {
Expand All @@ -84,7 +82,7 @@ export const make = Effect.sync(() => {
})

function run() {
runFork(handledEffect)
runFork(handledEffect, { onlyIfMissing: true })
}

yield* Scope.addFinalizer(
Expand Down

0 comments on commit 2d385a4

Please sign in to comment.