Created
May 23, 2023 01:50
-
-
Save dineshigdd/6f213fca2fceb9b5b9936f732b4bcc4b to your computer and use it in GitHub Desktop.
This file contains 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
const query = useQuery({ | |
queryKey: ['users'], | |
queryFn: getUsers, | |
staleTime: 5000, | |
cacheTime: 60000 | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment