fix(error): add sanity checks before error destructuring

also preserve original stack trace(and print it) in dev mode
This commit is contained in:
zyachel
2024-08-23 03:16:05 +05:30
parent 333d3b107e
commit e320557add
16 changed files with 79 additions and 58 deletions

View File

@ -14,4 +14,7 @@ const axiosInstance = axios.create({
},
});
export const isSaneError = axios.isAxiosError;
export default axiosInstance;