Skip to content

Instantly share code, notes, and snippets.

@nabanita-sarkar
Created June 22, 2021 11:05
Show Gist options
  • Save nabanita-sarkar/7bbf43c9d39bbe2f1e0d887914cfaa2f to your computer and use it in GitHub Desktop.
Save nabanita-sarkar/7bbf43c9d39bbe2f1e0d887914cfaa2f to your computer and use it in GitHub Desktop.
const {
isLoading: isAllTodoLoading,
isError: isAllTodoError,
data: allTodo,
} = useQuery("todo/all", () => {
return axios.post("http://localhost:4000/todo/all", todo)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment