Skip to content

Commit

Permalink
fix: fixed issue in mergeLoadingStates()
Browse files Browse the repository at this point in the history
- fixed issue where mergeLoadingStates() would pass b's value if a's loading value was false
  • Loading branch information
dereekb committed Dec 8, 2022
1 parent f911f60 commit 4206396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rxjs/src/lib/loading/loading.state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export function mergeLoadingStates<A extends object, B extends object, C>(a: Loa
error
};
} else {
const loading = !a || !b || (a?.loading ?? b?.loading);
const loading = !a || !b || a?.loading || b?.loading;
if (loading) {
result = {
loading: true
Expand Down

0 comments on commit 4206396

Please sign in to comment.