Last active
October 14, 2022 01:48
-
-
Save jimkeller/e127a185ddfce5509fa346fb66284e57 to your computer and use it in GitHub Desktop.
React.js example for watching returned react-query data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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