Skip to content
Discussion options

You must be logged in to vote
const unsubscribe = queryClient.getQueryCache().subscribe(event => {
  if (event.type === 'updated' && event.action.type === 'fetch') {
    // do your stuff here with event.query
  }
})

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@adityarupifi
Comment options

@TkDodo
Comment options

Answer selected by TkDodo
@adityarupifi
Comment options

@TkDodo
Comment options

@adityarupifi
Comment options

@TkDodo
Comment options

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