Add smart preloading of settings screens to reduce flicker

This commit is contained in:
Tom Moor committed 2025-05-10 00:31:40 -04:00
1 parent e216c68f6d
commit 6a87c755fa
13 files changed
+112 -37

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
import * as React from "react";
import { createLazyComponent } from "~/components/LazyLoad";
import { Hook, PluginManager } from "~/utils/PluginManager";
import config from "../plugin.json";
import Icon from "./Icon";
@@ -10,7 +10,7 @@ PluginManager.add([
value: {
group: "Integrations",
icon: Icon,
component: React.lazy(() => import("./Settings")),
component: createLazyComponent(() => import("./Settings")),
},
},
]);