Cancel the queries when navigating to another page #6185
Unanswered
lokeshwarobuli
asked this question in
Q&A
Replies: 3 comments
-
I tried to implement this one https://codesandbox.io/s/falling-snowflake-hl9cj?file=/src/query.js too, but I was unsuccessful again |
Beta Was this translation helpful? Give feedback.
0 replies
-
Any answer to this @TkDodo ?? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@TkDodo any hints here please ?? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I have the following setup and trying to cancel the query when navigating away from the page, But I am not able to do so. Kindly help please
Query
getCostVsOutputChartData
methodWhat are the changes that I should make to above to achieve the functionality, I tried going through docs(https://tanstack.com/query/v3/docs/react/guides/query-cancellation#manual-cancellation) and implementing but I am unsuccessful
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions