Skip to content

Commit

Permalink
Remove refetchQueries
Browse files Browse the repository at this point in the history
  • Loading branch information
Eprince-hub committed Oct 1, 2024
1 parent e51cade commit 50d8ece
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/animals/dashboard/AnimalsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ export default function AnimalsForm() {
resetFormStates();
setErrorMessage('');
},
refetchQueries: ['Animals'],
});

const [updateAnimal] = useMutation(updateAnimalMutation, {
Expand All @@ -111,7 +110,6 @@ export default function AnimalsForm() {
resetFormStates();
setErrorMessage('');
},
refetchQueries: ['Animals'],
});

const [deleteAnimal] = useMutation(deleteAnimalMutation, {
Expand All @@ -122,7 +120,6 @@ export default function AnimalsForm() {
onCompleted: () => {
setErrorMessage('');
},
refetchQueries: ['Animals'],
});

return (
Expand Down

0 comments on commit 50d8ece

Please sign in to comment.