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(queries): Fix async frontend queries cancel behavior #18843

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

webjunkie
Copy link
Contributor

Problem

We are awaiting in the loop and only then checking the abort signal. That means a user can be stuck in there for 10 seconds after they clicked cancel.

Changes

  • we can actually listen to the abort signal in the delay
  • just pass it in there

How did you test this code?

  • clicky click in frontend SQL tab

Copy link
Contributor

Size Change: 0 B

Total Size: 1.97 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.97 MB

compressed-size-action

Copy link
Collaborator

@mariusandra mariusandra left a comment

Choose a reason for hiding this comment

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

Looks good! 👍

@mariusandra mariusandra merged commit 73dee10 into master Nov 23, 2023
75 checks passed
@mariusandra mariusandra deleted the fix/query-async-delay-abort branch November 23, 2023 13:50
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