Mount the dialog host at the app root so prompts resolve before the client route renders. [skip build]
This commit is contained in:
@@ -5,6 +5,7 @@ import { RouterProvider } from 'react-router-dom';
|
||||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
||||
|
||||
import { dialogStore } from '../state/dialog';
|
||||
import { DialogHost } from '../components/DialogHost';
|
||||
import { ClientConfigLoader } from '../components/ClientConfigLoader';
|
||||
import { ClientConfigProvider } from '../hooks/useClientConfig';
|
||||
import { ConfigConfigError, ConfigConfigLoading } from './ConfigConfig';
|
||||
@@ -38,6 +39,7 @@ function App() {
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<JotaiProvider store={dialogStore}>
|
||||
<RouterProvider router={createRouter(clientConfig, screenSize)} />
|
||||
<DialogHost />
|
||||
</JotaiProvider>
|
||||
</QueryClientProvider>
|
||||
</ClientConfigProvider>
|
||||
|
||||
@@ -61,7 +61,6 @@ import {
|
||||
materializeSharedFile,
|
||||
} from '../../utils/androidShare';
|
||||
import { UpdatesDialogHost } from '../../components/updates-dialog';
|
||||
import { DialogHost } from '../../components/DialogHost';
|
||||
|
||||
/**
|
||||
* Applies the selected emoji style font to the document.
|
||||
@@ -702,7 +701,6 @@ export function ClientNonUIFeatures({ children }: ClientNonUIFeaturesProps) {
|
||||
<AndroidShareIntentHandler />
|
||||
{children}
|
||||
<UpdatesDialogHost />
|
||||
<DialogHost />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user