|
@@ -10,6 +10,7 @@ import {
|
|
|
updateProjects,
|
|
|
} from 'sentry/actionCreators/pageFilters';
|
|
|
import * as Layout from 'sentry/components/layouts/thirds';
|
|
|
+import LoadingIndicator from 'sentry/components/loadingIndicator';
|
|
|
import {SIDEBAR_NAVIGATION_SOURCE} from 'sentry/components/sidebar/utils';
|
|
|
import {DEFAULT_STATS_PERIOD} from 'sentry/constants';
|
|
|
import {useLocation} from 'sentry/utils/useLocation';
|
|
@@ -185,8 +186,14 @@ function PageFiltersContainer({
|
|
|
}, [location.query]);
|
|
|
|
|
|
// Wait for global selection to be ready before rendering children
|
|
|
+ // TODO: Not waiting for projects to be ready but initializing the correct page filters
|
|
|
+ // would speed up orgs with tons of projects
|
|
|
if (!isReady) {
|
|
|
- return <Layout.Page withPadding />;
|
|
|
+ return (
|
|
|
+ <Layout.Page withPadding>
|
|
|
+ <LoadingIndicator />
|
|
|
+ </Layout.Page>
|
|
|
+ );
|
|
|
}
|
|
|
|
|
|
return <Fragment>{children}</Fragment>;
|