Skip to content

Commit 5585b67

Browse files
committed
fix(rx-stateful): remove 'idle' context
1 parent e5f1f02 commit 5585b67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libs/rx-stateful/src/lib/rx-stateful$.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export function rxStateful$<T, E = unknown>(
8383
const state$ = merge(request$, refreshedRequest$, error$$).pipe(
8484
scan(
8585
accumulationFn,
86-
{ isLoading: false, isRefreshing: false, value: undefined, error: undefined, context: 'idle' }
86+
{ isLoading: false, isRefreshing: false, value: undefined, error: undefined, context: 'suspense' }
8787
),
8888
distinctUntilChanged(),
8989
share({

libs/rx-stateful/src/lib/types/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {RxStatefulAccumulationFn} from "./accumulation-fn";
77
* @description
88
* Context of the current emission.
99
*/
10-
export type RxStatefulContext = 'idle' | 'suspense' | 'error' | 'next';
10+
export type RxStatefulContext = 'suspense' | 'error' | 'next';
1111

1212
/**
1313
* @publicApi

0 commit comments

Comments
 (0)