You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
501 B
18 lines
501 B
4 weeks ago
|
"use client";
|
||
|
|
||
|
import { loadTokenFromStorage } from "@/lib/token";
|
||
|
import { useEffect } from "react";
|
||
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
||
|
|
||
|
const queryClient = new QueryClient();
|
||
|
|
||
|
export default function Providers({ children }: { children: React.ReactNode }) {
|
||
|
useEffect(() => {
|
||
|
loadTokenFromStorage(); // 새로고침 토큰 복원
|
||
|
}, []);
|
||
|
|
||
|
return (
|
||
|
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
|
||
|
);
|
||
|
}
|