diff --git a/src/app/more/track/page.tsx b/src/app/more/track/page.tsx
index e69de29..0c4afad 100644
--- a/src/app/more/track/page.tsx
+++ b/src/app/more/track/page.tsx
@@ -0,0 +1,3 @@
+export default function TrackPage() {
+ return
hi
;
+}
diff --git a/src/provider/userProvider.tsx b/src/provider/userProvider.tsx
index af48ab6..ec0bed7 100644
--- a/src/provider/userProvider.tsx
+++ b/src/provider/userProvider.tsx
@@ -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");
@@ -54,7 +54,7 @@ export function UserProvider({ children }: { children: React.ReactNode }) {
} finally {
setIsLoading(false);
}
- };
+ }, [setIsLoggedIn]);
useEffect(() => {
if (!isLoggedIn) {
@@ -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 {