0.1.11 #14

Merged
Thilawyn merged 318 commits from next into master 2025-05-19 14:01:41 +02:00
Showing only changes of commit fad61afce7 - Show all commits

View File

@@ -53,7 +53,8 @@ export const make = <A, E, R>(
const forkFetch = interrupt.pipe(
Effect.andThen(
Ref.set(stateRef, AsyncData.loading()).pipe(
Effect.andThen(queryRef.pipe(Effect.flatMap(identity))),
Effect.andThen(queryRef),
Effect.flatMap(identity),
Effect.matchCauseEffect({
onSuccess: v => Ref.set(stateRef, AsyncData.success(v)),
onFailure: c => Ref.set(stateRef, AsyncData.failure(c)),
@@ -83,7 +84,8 @@ export const make = <A, E, R>(
return AsyncData.refreshing(previous.previous)
return AsyncData.loading()
}).pipe(
Effect.andThen(queryRef.pipe(Effect.flatMap(identity))),
Effect.andThen(queryRef),
Effect.flatMap(identity),
Effect.matchCauseEffect({
onSuccess: v => Ref.set(stateRef, AsyncData.success(v)),
onFailure: c => Ref.set(stateRef, AsyncData.failure(c)),