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

fix(shardQuerySplitting): do not emit empty data #793

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

matyax
Copy link
Contributor

@matyax matyax commented Sep 20, 2024

Fixes showing "no data" while streaming.

@matyax matyax requested a review from a team as a code owner September 20, 2024 12:13
mergedResponse = combineResponses(mergedResponse, partialResponse);
},
complete: () => {
subscriber.next(mergedResponse);
// Prevent flashing "no data"
if (mergedResponse.data.length) {
Copy link
Contributor

Choose a reason for hiding this comment

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

What if we only ever get empty frames. I think we need to at least call subscriber.next(mergedResponse); when the state is LoadingState.Done or something like that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@svennergr svennergr self-requested a review September 20, 2024 12:18
Copy link
Contributor

@svennergr svennergr left a comment

Choose a reason for hiding this comment

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

🚀

@matyax matyax enabled auto-merge (squash) September 20, 2024 12:19
@matyax matyax merged commit 6aacf6f into main Sep 20, 2024
4 checks passed
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