Skip to content
public-library›Rules›TanStack Query›Pass the query's AbortSignal to the request

Pass the query's AbortSignal to the request

Pass the signal that TanStack Query gives the query function to the underlying request, such as fetch or an HTTP client, so obsolete requests are aborted.

In the full rule