mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-18 06:10:43 -07:00
- Replaced the old AppScreenshot.webp with a new VoiceBoxAppScreenshot.webp. - Removed the obsolete AppScreenshot.webp file. - Updated the landing page to reference the new VoiceBoxAppScreenshot.webp. - Commented out the ReactQueryDevtools import in main.tsx for cleaner code.
28 lines
831 B
TypeScript
28 lines
831 B
TypeScript
import React from 'react';
|
|
import ReactDOM from 'react-dom/client';
|
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
// import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
|
|
import App from '@/App';
|
|
// Import CSS from app directory using alias so Tailwind can scan the source files
|
|
import '@/index.css';
|
|
|
|
const queryClient = new QueryClient({
|
|
defaultOptions: {
|
|
queries: {
|
|
staleTime: 1000 * 60 * 5, // 5 minutes
|
|
gcTime: 1000 * 60 * 10, // 10 minutes
|
|
retry: 1,
|
|
refetchOnWindowFocus: false,
|
|
},
|
|
},
|
|
});
|
|
|
|
ReactDOM.createRoot(document.getElementById('root')!).render(
|
|
<React.StrictMode>
|
|
<QueryClientProvider client={queryClient}>
|
|
<App />
|
|
{/* <ReactQueryDevtools initialIsOpen={false} /> */}
|
|
</QueryClientProvider>
|
|
</React.StrictMode>,
|
|
);
|