Improve app startup and route fallbacks

This commit is contained in:
shuaiplus
2026-05-04 04:19:02 +08:00
parent 45f0387526
commit 75a6a593dc
14 changed files with 858 additions and 87 deletions
+9 -4
View File
@@ -15,14 +15,19 @@ const queryClient = new QueryClient({
},
});
async function bootstrap(): Promise<void> {
await initI18n();
const root = document.getElementById('root')!;
function renderApp(): void {
render(
<QueryClientProvider client={queryClient}>
<App />
</QueryClientProvider>,
document.getElementById('root')!
root
);
}
void bootstrap();
renderApp();
void initI18n().then(() => {
renderApp();
});