0.2.2 #31
@@ -1,4 +1,4 @@
|
|||||||
import { type Cause, Console, type Context, DateTime, type Duration, Effect, Exit, Fiber, HashMap, identity, Option, Pipeable, Predicate, type Scope, Stream, Subscribable, SubscriptionRef } from "effect"
|
import { type Cause, type Context, DateTime, type Duration, Effect, Exit, Fiber, HashMap, identity, Option, Pipeable, Predicate, type Scope, Stream, Subscribable, SubscriptionRef } from "effect"
|
||||||
import * as QueryClient from "./QueryClient.js"
|
import * as QueryClient from "./QueryClient.js"
|
||||||
import * as Result from "./Result.js"
|
import * as Result from "./Result.js"
|
||||||
|
|
||||||
@@ -204,9 +204,7 @@ extends Pipeable.Class() implements Query<K, A, E, R, P> {
|
|||||||
get changes() { return Stream.make(entry.result as Result.Result<A, E, P>) },
|
get changes() { return Stream.make(entry.result as Result.Result<A, E, P>) },
|
||||||
})),
|
})),
|
||||||
),
|
),
|
||||||
onNone: () => this.start(key, initial).pipe(
|
onNone: () => this.start(key, initial),
|
||||||
Effect.tap(Console.log("Cache missed"))
|
|
||||||
),
|
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user