Skip to content
Discussion options

You must be logged in to vote

I actually found my answer by reading some unrelated questions.

const state = queryClient.getQueryState([queryKey, queryParams], { type: "inactive" })

The query filters allow for matching only inactive queries, which is exactly what I needed.

Now as a bonus for my next step: would anyone know whether it would be possible to somehow subscribe to "callback whenever this query becomes inactive"?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@TkDodo
Comment options

@TkDodo
Comment options

@Sheraff
Comment options

@Sheraff
Comment options

Answer selected by Sheraff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants