added retry count to global react-query setup

This commit is contained in:
victorAnumudu
2024-12-12 19:56:11 +01:00
parent 94d8e9f0ef
commit 26bb5d0d11
3 changed files with 7 additions and 5 deletions
+2 -1
View File
@@ -36,7 +36,8 @@ const getAuxEnd = (path) => {
// localStorage.clear();
// window.location.href = `/login?sessionExpired=true`;
}).catch(err => {
throw new Error(err.response.data.message);
throw new Error(err);
// throw new Error(err.response.data.message);
// return err
})
}