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

manager: smoother fetch items (fixes #7463) #7464

Merged

Conversation

Mutugiii
Copy link
Member

Fixes #7463

In the manager fetch items, we have a situation where the popups open twice on page initialization.
Resolve it to only open one.

@Mutugiii Mutugiii requested a review from dogi May 22, 2024 12:34
@Mutugiii Mutugiii linked an issue May 22, 2024 that may be closed by this pull request
@@ -137,7 +137,9 @@ export class SyncService {
}

replicatorsArrayWithTags(items, type: 'pull' | 'push', planetField: 'local' | 'parent') {
return this.stateService.getCouchState('tags', planetField).pipe(map(tags => this.createReplicatorsArray(items, type, tags)));
return this.stateService.getCouchState('tags', planetField).pipe(
take(1),
Copy link
Member Author

Choose a reason for hiding this comment

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

currently taking only the first observable in the replicators array.

Could compare the 2 received and then take it only if they are the same.

@dogi dogi changed the title manager: one popup on fetch items (fixes #7463) manager: smoother fetch items (fixes #7463) May 22, 2024
@dogi dogi merged commit a60d6d6 into master May 22, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

double popups across courses, resources and manager fetch
2 participants