Created
October 14, 2022 01:44
-
-
Save jimkeller/6ae31fde006a8a45dd32c687bf5eb219 to your computer and use it in GitHub Desktop.
Example of using refetch() in react-query
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
/* Call refetch when inputValue changes */ | |
useEffect( | |
() => { | |
refetch(); | |
}, [inputValue] | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment