Skip to content

Commit ba2a7f7

Browse files
authored
Only set app as ready when initializeInternal succeeds (#2014)
Part of OPS-3784
1 parent bd1d844 commit ba2a7f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/react-ui/src/app/app-bootstrap.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ export function AppBootstrap({ children }: Readonly<AppBootstrapProps>) {
2525
try {
2626
const flags = await flagsApi.getAll();
2727
queryClient.setQueryData<FlagsMap>([QueryKeys.flags], flags);
28-
await initializeInternal();
28+
const isInitialized = await initializeInternal();
2929

30-
if (mounted) {
30+
if (mounted && isInitialized) {
3131
setState({ status: 'ready' });
3232
}
3333
} catch (error) {

0 commit comments

Comments
 (0)