Skip to content

Commit

Permalink
fix: [temporary] AppHeader의 에러 핸들링 로직 일부 비활성화 외 1
Browse files Browse the repository at this point in the history
- react-query fetch 시도 횟수 1 -> 3
  • Loading branch information
sscoderati committed Jan 16, 2024
1 parent adafe80 commit 133f561
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/apis/queryClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export const queryClient = new QueryClient({
queries: {
refetchOnWindowFocus: false,
refetchOnMount: false,
retry: 1,
},
},
queryCache: new QueryCache({
Expand Down
5 changes: 3 additions & 2 deletions src/components/common/AppHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import { FlexBox } from "@/components/common/Flexbox";
import { Text } from "@/components/common/Text";
import useToast from "@/hooks/useToast.tsx";
import { palette } from "@/styles/palette";
import useAuthStore from "@/store/AuthStore.tsx";

// import useAuthStore from "@/store/AuthStore.tsx";

const StyleAppHeader = styled.div<{ height?: string }>`
width: 100%;
Expand Down Expand Up @@ -82,7 +83,7 @@ const AppHeader = ({ isAuth, isDarkMode, height, toggleDarkMode }: AppHeaderProp
type: "error",
isDarkMode,
});
useAuthStore.persist.clearStorage();
// useAuthStore.persist.clearStorage();
navigate("/login");
}

Expand Down

0 comments on commit 133f561

Please sign in to comment.