There are often times in a web application where you need to send a request for the latest user interaction. We need a way to prevent subsequent (async) logic from running for all but the most recent request 鈥撀爏omething like Axios' cancel token or fetch()'s AbortController.
https://github.com/tannerlinsley/react-query#cancelling-query-requests
Upgrade to 0.3.14
Since the documentation have moved to a new website, you also find the canceling-query-request in this link
Most helpful comment
Upgrade to
0.3.14