Skip to content

Commit a559922

Browse files
authored
feat: [ZN-494] add api error shape standardization & global error handling (#156)
* feat: add api error shape standarization * feat: add global error handlers * refactor: change api error type to base discriminated union on type property * feat: add 401 errors handling in interceptors * feat: add ExtendedQueryMeta type to query & mutation options * refactor: add refreshTokeUrl const * refactor: remove useInfiniteQuery unnecessary typecasting * fix: fix shouldHandleGlobalError conditions * style: fix getStandardizedApiError function name typo * feat: add error logging to useHandleQueryErrors * fix: github actions npm i errors * chore: add changeset file
1 parent 6b5cc27 commit a559922

File tree

20 files changed

+436
-548
lines changed

20 files changed

+436
-548
lines changed

.changeset/young-ducks-march.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-starter-boilerplate": minor
3+
---
4+
5+
add api error standardization & handling global api errors

0 commit comments

Comments
 (0)