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 { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
||||||
|
|
||||||
import { dialogStore } from '../state/dialog';
|
import { dialogStore } from '../state/dialog';
|
||||||
|
import { DialogHost } from '../components/DialogHost';
|
||||||
import { ClientConfigLoader } from '../components/ClientConfigLoader';
|
import { ClientConfigLoader } from '../components/ClientConfigLoader';
|
||||||
import { ClientConfigProvider } from '../hooks/useClientConfig';
|
import { ClientConfigProvider } from '../hooks/useClientConfig';
|
||||||
import { ConfigConfigError, ConfigConfigLoading } from './ConfigConfig';
|
import { ConfigConfigError, ConfigConfigLoading } from './ConfigConfig';
|
||||||
@@ -38,6 +39,7 @@ function App() {
|
|||||||
<QueryClientProvider client={queryClient}>
|
<QueryClientProvider client={queryClient}>
|
||||||
<JotaiProvider store={dialogStore}>
|
<JotaiProvider store={dialogStore}>
|
||||||
<RouterProvider router={createRouter(clientConfig, screenSize)} />
|
<RouterProvider router={createRouter(clientConfig, screenSize)} />
|
||||||
|
<DialogHost />
|
||||||
</JotaiProvider>
|
</JotaiProvider>
|
||||||
</QueryClientProvider>
|
</QueryClientProvider>
|
||||||
</ClientConfigProvider>
|
</ClientConfigProvider>
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ import {
|
|||||||
materializeSharedFile,
|
materializeSharedFile,
|
||||||
} from '../../utils/androidShare';
|
} from '../../utils/androidShare';
|
||||||
import { UpdatesDialogHost } from '../../components/updates-dialog';
|
import { UpdatesDialogHost } from '../../components/updates-dialog';
|
||||||
import { DialogHost } from '../../components/DialogHost';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Applies the selected emoji style font to the document.
|
* Applies the selected emoji style font to the document.
|
||||||
@@ -702,7 +701,6 @@ export function ClientNonUIFeatures({ children }: ClientNonUIFeaturesProps) {
|
|||||||
<AndroidShareIntentHandler />
|
<AndroidShareIntentHandler />
|
||||||
{children}
|
{children}
|
||||||
<UpdatesDialogHost />
|
<UpdatesDialogHost />
|
||||||
<DialogHost />
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user