const queryClient = new QueryClient({ defaultOptions: { queries: { refetchOnMount: false, staleTime: Infinity, }, }, });export default function App() { return ( <QueryClientProvider client={queryClient}> <Messages /> </QueryClientProvider> );}
export default function App() { const queryClient = new QueryClient({ defaultOptions: { queries: { refetchOnMount: false, staleTime: Infinity, }, }, }); return ( <QueryClientProvider client={queryClient}> <Messages /> </QueryClientProvider> );}
npm update