Skip to content
Discussion options

You must be logged in to vote
const handleClick = () => {
  try {
    const { data } = await refetch();
    console.log('Trying to emulate legacy `onSuccess`');
  }
  catch (e) {
    toast.error('Some error');
  }
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ok2ju
Comment options

@TkDodo
Comment options

Answer selected by ok2ju
@ok2ju
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
2 participants