Commit a559922
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 file1 parent 6b5cc27 commit a559922
File tree
20 files changed
+436
-548
lines changed- .changeset
- src
- api
- actions/auth
- types
- context/apiClient/apiClientContextController
- apiError
- interceptors
- hooks
- useHandleQueryErrors
- useInfiniteQuery
- useMutation
- useQuery
- routing
- utils
20 files changed
+436
-548
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments