message: Show 404 page only after all dynamic plugins are processed
diff: @@ -2,6 +2,7 @@ import * as _ from 'lodash-es';
  import * as React from 'react';
  import { Redirect, Route, Switch } from 'react-router-dom';
  +import { useDynamicPluginInfo } from '@console/plugin-sdk/src/api/useDynamicPluginInfo';
  import {
  FLAGS,
  useActivePerspective,
  @@ -178,6 +179,8 @@ const AppContents: React.FC<{}> = () => {
  const [activePerspective, setActivePerspective] = useActivePerspective();
  const routePageExtensions = useExtensions<RoutePage>(isRoutePage);
  const dynamicRoutePages = useExtensions<DynamicRoutePage>(isDynamicRoutePage);
  + const [, allPluginsProcessed] = useDynamicPluginInfo();
  +
  const [pluginPageRoutes, inactivePluginPageRoutes] = React.useMemo(
  () =>
  getPluginPageRoutes(
  @@ -700,11 +703,15 @@ const AppContents: React.FC<{}> = () => {
  />
  <Route path="/" exact component={DefaultPage} />
  + {allPluginsProcessed ? (
  <LazyRoute
  loader={() =>
  import('./error' /* webpackChunkName: "error" */).then((m) => m.ErrorPage404)
  }
  />
  + ) : (
  + <Route component={LoadingBox} />
  + )}
  </Switch>
  </React.Suspense>
  </div>
  