Skip to content

Commit 423dbc1

Browse files
committed
chore: 🔨 update readme, init husky
1 parent f87558b commit 423dbc1

File tree

4 files changed

+9
-20
lines changed

4 files changed

+9
-20
lines changed

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit $1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# React + TypeScript + Vite + TanStack Router + TanStack Query + AirBNB EsList
1+
# React(v19) + TypeScript + Vite + TanStack Router + TanStack Query + AirBNB EsList
22

33

44
## A TypeScript React template using @tanstack/router & @tanstack-react-query.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"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",
55
"keywords": [
66
"react",
77
"react-template",
@@ -17,7 +17,8 @@
1717
"commitlint",
1818
"cz-git",
1919
"i18",
20-
"react-template-i18n"
20+
"react-template-i18n",
21+
"react-19"
2122
],
2223
"repository": {
2324
"type": "git",

src/providers/AxiosProvider.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ const configureResponseInterceptor = (axiosInstance: AxiosInstance) => {
2929
axiosInstance.interceptors.response.use(
3030
(response) => response,
3131
(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-
// }
3832
// Change according to your apis
3933
const errorObject = {
4034
error: error.response?.data,
@@ -77,16 +71,6 @@ const AxiosProvider = ({
7771
return <AxiosContext.Provider value={axiosInstance}>{children}</AxiosContext.Provider>;
7872
};
7973

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-
9074
export type { AxiosResponse };
9175
export { AxiosContext };
9276
export type { AxiosError };

0 commit comments

Comments
 (0)