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

There should be a way to cancel the requests from useCubeQuery when the component has unmounted #8263

Open
ashwanisinghh opened this issue May 15, 2024 · 0 comments

Comments

@ashwanisinghh
Copy link

When we are using the useCubeQuery hook to get the data from cube server & user has routed to some other routes, while the result is being fetched. Then it should cancel out the request , as component from which the request was raised has already unmounted

To Reproduce
Steps to reproduce the behavior:

  1. create a dashboard with multiple reports on it
  2. redirect to another route as soon as you have landed on dashboard
  3. In network tab of developer tool, you will see that the requests of reports on dashboard are still active, which is of no use now, as the dashboard component has already unmounted

Expected behavior
Requests for reports data should have be cancelled out

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

No branches or pull requests

1 participant