File tree Expand file tree Collapse file tree 4 files changed +9
-20
lines changed Expand file tree Collapse file tree 4 files changed +9
-20
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ . " $( dirname " $0 " ) /_/husky.sh"
3
+
4
+ npx --no-install commitlint --edit $1
Original file line number Diff line number Diff line change 1
- # React + TypeScript + Vite + TanStack Router + TanStack Query + AirBNB EsList
1
+ # React(v19) + TypeScript + Vite + TanStack Router + TanStack Query + AirBNB EsList
2
2
3
3
4
4
## A TypeScript React template using @tanstack/router & @tanstack-react-query .
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " tanstack-router-query-template" ,
3
- "version" : " 1.0 .0" ,
4
- "description" : " A TypeScript React template using @tanstack/react-router & @tanstack-react-query" ,
3
+ "version" : " 1.2 .0" ,
4
+ "description" : " A TypeScript React(v19) template using @tanstack/react-router & @tanstack-react-query" ,
5
5
"keywords" : [
6
6
" react" ,
7
7
" react-template" ,
17
17
" commitlint" ,
18
18
" cz-git" ,
19
19
" i18" ,
20
- " react-template-i18n"
20
+ " react-template-i18n" ,
21
+ " react-19"
21
22
],
22
23
"repository" : {
23
24
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -29,12 +29,6 @@ const configureResponseInterceptor = (axiosInstance: AxiosInstance) => {
29
29
axiosInstance . interceptors . response . use (
30
30
( response ) => response ,
31
31
( error : AxiosError ) => {
32
- // if (error.response.status === 401) {
33
- // const newToken = await refreshToken();
34
- // localStorage.setItem('authToken', newToken);
35
- // // Retry the original request
36
- // return axios(error.config);
37
- // }
38
32
// Change according to your apis
39
33
const errorObject = {
40
34
error : error . response ?. data ,
@@ -77,16 +71,6 @@ const AxiosProvider = ({
77
71
return < AxiosContext . Provider value = { axiosInstance } > { children } </ AxiosContext . Provider > ;
78
72
} ;
79
73
80
- // function useAxios() {
81
- // const axiosInstance = useContext(AxiosContext);
82
-
83
- // if (!axiosInstance) {
84
- // throw new Error('useAxios must be used within an AxiosProvider');
85
- // }
86
-
87
- // return axiosInstance;
88
- // }
89
-
90
74
export type { AxiosResponse } ;
91
75
export { AxiosContext } ;
92
76
export type { AxiosError } ;
You can’t perform that action at this time.
0 commit comments