Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CXSPA-3073: RxJs 7 #17362

Merged
merged 9 commits into from
May 8, 2023
Merged

CXSPA-3073: RxJs 7 #17362

merged 9 commits into from
May 8, 2023

Conversation

ercultimate
Copy link
Contributor

No description provided.

@ercultimate ercultimate requested a review from a team as a code owner May 2, 2023 17:25
@ercultimate ercultimate requested a review from a team May 2, 2023 17:25
@ercultimate ercultimate requested review from a team as code owners May 2, 2023 17:25
@ercultimate ercultimate force-pushed the feature/CXSPA-3073 branch from 488080c to a8f4931 Compare May 3, 2023 15:09
In RxJs 6, debounce emits when the inner observable emits _or completes_.
In RxJs 7, debounce emits when the inner observable emits.
The resolve type of `Observable.toPromise()` was updated to include
undefined, which would be the case if the observable did not emit.
Using `fromLastValue` gurantees the resolve type by rejecting in
the case of no emit when the observable closes.
@ercultimate ercultimate force-pushed the feature/CXSPA-3073 branch from a8f4931 to 5e6da17 Compare May 4, 2023 14:41
@@ -76,7 +76,7 @@ export class MultiCartService implements MultiCartFacade {
// This flickering should only be avoided when switching from false to true
// Start of loading should be showed instantly (no debounce)
// Extra actions are only dispatched after some loading
debounce((isStable) => (isStable ? timer(0) : EMPTY)),
debounce((isStable) => (isStable ? timer(0) : of(undefined))),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we change it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ercultimate ercultimate merged commit cf74b84 into epic/CXSPA-2897 May 8, 2023
@ercultimate ercultimate deleted the feature/CXSPA-3073 branch May 8, 2023 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants