We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd1d844 commit ba2a7f7Copy full SHA for ba2a7f7
1 file changed
packages/react-ui/src/app/app-bootstrap.tsx
@@ -25,9 +25,9 @@ export function AppBootstrap({ children }: Readonly<AppBootstrapProps>) {
25
try {
26
const flags = await flagsApi.getAll();
27
queryClient.setQueryData<FlagsMap>([QueryKeys.flags], flags);
28
- await initializeInternal();
+ const isInitialized = await initializeInternal();
29
30
- if (mounted) {
+ if (mounted && isInitialized) {
31
setState({ status: 'ready' });
32
}
33
} catch (error) {
0 commit comments