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: query cancellation issue #6319

Merged
merged 2 commits into from
Dec 20, 2024
Merged

fix: query cancellation issue #6319

merged 2 commits into from
Dec 20, 2024

Conversation

briangregoryholmes
Copy link
Contributor

@briangregoryholmes briangregoryholmes commented Dec 20, 2024

In this file, we're refetching the project when the application tab is refocused.

This refetch meant we were receiving a new JWT each time. The JWT is colocated in a store that also handles the host and instanceId variables, so updating one triggers a reactive update for all of them.

In our state managers, the explore spec and time range summary are dependent on the runtime store.

In Leaderboards, the primary aggregation query is dependent on an array of measures and the time range, which are derived from those queries. So, on window focus, the parameters were updating and the pending query was cancelled/re-initiated.

This is a patch fix for that issue and does not address the underlying structural flaw.

@briangregoryholmes briangregoryholmes self-assigned this Dec 20, 2024
@briangregoryholmes briangregoryholmes added Type:Bug Something isn't working patch labels Dec 20, 2024
@ericpgreen2 ericpgreen2 merged commit 9b684ad into main Dec 20, 2024
7 checks passed
@ericpgreen2 ericpgreen2 deleted the bgh/reactivity-fix branch December 20, 2024 19:38
ericpgreen2 pushed a commit that referenced this pull request Dec 20, 2024
* fix: query cancellation issue

* type fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Type:Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants