mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-29 15:15:27 -07:00
Each entry built its own QueryClient while serverStore invalidates the singleton from lib/queryClient — so switching server URL never refreshed data. Both entries now render with the singleton. i18n init was only reachable transitively through lib/utils/format.ts; import it directly in both entries.
23 lines
841 B
TypeScript
23 lines
841 B
TypeScript
import { QueryClientProvider } from '@tanstack/react-query';
|
|
import React from 'react';
|
|
import ReactDOM from 'react-dom/client';
|
|
// 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';
|
|
import '@/i18n';
|
|
import { queryClient } from '@/lib/queryClient';
|
|
import { PlatformProvider } from '@/platform/PlatformContext';
|
|
import { tauriPlatform } from './platform';
|
|
|
|
ReactDOM.createRoot(document.getElementById('root')!).render(
|
|
<React.StrictMode>
|
|
<QueryClientProvider client={queryClient}>
|
|
<PlatformProvider platform={tauriPlatform}>
|
|
<App />
|
|
{/* <ReactQueryDevtools initialIsOpen={false} /> */}
|
|
</PlatformProvider>
|
|
</QueryClientProvider>
|
|
</React.StrictMode>,
|
|
);
|