Cancel useInfiniteQuery pending API's
Hi,
I have a useInfiniteQuery search API that takes a a user entered search param and returns some results. I want to cancel any ongoing API calls if the user enters a new search param value.
Any ideas on how to do this?
I have a useInfiniteQuery search API that takes a a user entered search param and returns some results. I want to cancel any ongoing API calls if the user enters a new search param value.
Any ideas on how to do this?