Skip to content

Commit

Permalink
빌드 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
ipcgrdn committed Nov 27, 2024
1 parent aec6e00 commit ac4d408
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/app/more/track/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function TrackPage() {
return <div>hi</div>;
}
6 changes: 3 additions & 3 deletions src/provider/userProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function UserProvider({ children }: { children: React.ReactNode }) {

const router = useRouter();

const fetchUser = async () => {
const fetchUser = useCallback(async () => {
try {
setIsLoading(true);
const { data } = await api.get<Artist>("/artist");
Expand All @@ -54,7 +54,7 @@ export function UserProvider({ children }: { children: React.ReactNode }) {
} finally {
setIsLoading(false);
}
};
}, [setIsLoggedIn]);

useEffect(() => {
if (!isLoggedIn) {
Expand All @@ -70,7 +70,7 @@ export function UserProvider({ children }: { children: React.ReactNode }) {
}, 60 * 60 * 1000);

return () => clearInterval(interval);
}, [isLoggedIn]);
}, [isLoggedIn, fetchUser]);

const logout = useCallback(async () => {
try {
Expand Down

0 comments on commit ac4d408

Please sign in to comment.