Skip to content

Commit

Permalink
Remove redundant/unnecessary brick refresh on extension console (spee…
Browse files Browse the repository at this point in the history
…ds up by several seconds) (#7487)
  • Loading branch information
fregante authored Feb 7, 2024
1 parent ed996e1 commit 3b84698
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/extensionConsole/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import { ConnectedRouter } from "connected-react-router";
import EnvironmentBanner from "@/layout/EnvironmentBanner";
import ActivateModPage from "@/extensionConsole/pages/activateMod/ActivateModPage";
import ActivateExtensionPage from "@/extensionConsole/pages/activateExtension/ActivateExtensionPage";
import useRefreshRegistries from "@/hooks/useRefreshRegistries";
import SetupPage from "@/extensionConsole/pages/onboarding/SetupPage";
import UpdateBanner from "@/extensionConsole/pages/UpdateBanner";
import registerBuiltinBricks from "@/bricks/registerBuiltinBricks";
Expand All @@ -55,7 +54,6 @@ import ReduxPersistenceContext, {
} from "@/store/ReduxPersistenceContext";
import IDBErrorDisplay from "@/extensionConsole/components/IDBErrorDisplay";
import { DeploymentsProvider } from "@/extensionConsole/pages/deployments/DeploymentsContext";
import Loader from "@/components/Loader";

// Register the built-in bricks
registerEditors();
Expand All @@ -74,13 +72,6 @@ const AuthenticatedContent: React.VFC = () => {
dispatch(logActions.pollLogs());
}, [dispatch]);

// Get the latest brick definitions
const [loaded] = useRefreshRegistries();

if (!loaded) {
return <Loader />;
}

return (
<DeploymentsProvider>
<Sidebar />
Expand Down

0 comments on commit 3b84698

Please sign in to comment.