Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onSettled: () => queryCache.refetchQueries("roles.list"),
});
onSuccess: () => {
sendSuccessToast("Page créée.");
history.push(`/associations/${association.id}`);
return queryCache.refetchQueries("pages.list");
},
onError: (errorAsUnknown) => {
onSuccess: () => {
queryCache.refetchQueries(["campaigns.list"]);
},
onError: (errorAsUnknown) => {
onSuccess: () => {
queryCache.refetchQueries(["profile.get"]);
sendSuccessToast("Profil mis à jour.");
},
onError: (errorAsUnknown) => {
onSuccess: () => {
sendSuccessToast("Modifications enregistrées");
queryCache.refetchQueries("loanables.get");
queryCache.refetchQueries("loanables.list");
},
onError: () => sendErrorToast("Une erreur est survenue"),
onSuccess: () => {
queryCache.refetchQueries(["events.list"]);
sendSuccessToast("Événement supprimé.");
history.push(`/associations/${association.id}/evenements`);
},
onError: (errorAsUnknown) => {
onSuccess: () => {
sendSuccessToast("Modifications enregistrées");
queryCache.refetchQueries("loanables.get");
queryCache.refetchQueries("loanables.list");
},
onError: () => sendErrorToast("Une erreur est survenue"),
onSuccess: (response) => {
queryCache.refetchQueries(["events.list"]);
sendSuccessToast("Événement créé.");
},
onError: (errorAsUnknown) => {