Skip to content

Instantly share code, notes, and snippets.

@jimkeller
Last active October 14, 2022 01:48
Show Gist options
  • Save jimkeller/e127a185ddfce5509fa346fb66284e57 to your computer and use it in GitHub Desktop.
Save jimkeller/e127a185ddfce5509fa346fb66284e57 to your computer and use it in GitHub Desktop.
React.js example for watching returned react-query data
useEffect(
() => {
//
// Here is where you perform some action based on the returned data
//
}, [data, isRefetching]
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment