From 3b84698ba588694f1afa78e7c32a7e7b1d628df5 Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Wed, 7 Feb 2024 22:40:25 +0800 Subject: [PATCH] Remove redundant/unnecessary brick refresh on extension console (speeds up by several seconds) (#7487) --- src/extensionConsole/App.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/extensionConsole/App.tsx b/src/extensionConsole/App.tsx index 57f0af3d79..278ef507b6 100644 --- a/src/extensionConsole/App.tsx +++ b/src/extensionConsole/App.tsx @@ -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"; @@ -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(); @@ -74,13 +72,6 @@ const AuthenticatedContent: React.VFC = () => { dispatch(logActions.pollLogs()); }, [dispatch]); - // Get the latest brick definitions - const [loaded] = useRefreshRegistries(); - - if (!loaded) { - return ; - } - return (