Skip to content

Commit

Permalink
feat(rx-stateful): set keepErrorOnRefresh to false initially
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbe812 committed Jul 7, 2023
1 parent 5585b67 commit 49617e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/rx-stateful/src/lib/rx-stateful$.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export function rxStateful$<T, E = unknown>(
const error$$ = new Subject<RxStatefulWithError<T, E>>();
const mergedConfig: RxStatefulConfig<T,E> = {
keepValueOnRefresh: true,
keepErrorOnRefresh: false,
...config,
};
const accumulationFn = mergedConfig.accumulationFn ?? defaultAccumulationFn;
Expand Down

0 comments on commit 49617e0

Please sign in to comment.