Skip to content

Instantly share code, notes, and snippets.

@dineshigdd
Last active May 23, 2023 01:47
Show Gist options
  • Save dineshigdd/f22a9e040647f4ace6237e06584b8df8 to your computer and use it in GitHub Desktop.
Save dineshigdd/f22a9e040647f4ace6237e06584b8df8 to your computer and use it in GitHub Desktop.
const { isLoading, isError, data, error } = useQuery( { queryKey: ['todos'], queryFn: getTodos });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment