[Refactor] Remove the code that is no longer in use.
This commit is contained in:
@@ -4,7 +4,6 @@ import { usePlugins } from "@logics_configs";
|
||||
export const LoadPluginsController = ({ pluginsControllerHasRunRef }) => {
|
||||
const {
|
||||
asyncLoadAllPlugins,
|
||||
updateIsInitializedLoadPlugin,
|
||||
} = usePlugins();
|
||||
|
||||
const asyncInitLoadPlugins = async () => {
|
||||
@@ -17,9 +16,7 @@ export const LoadPluginsController = ({ pluginsControllerHasRunRef }) => {
|
||||
|
||||
useEffect(() => {
|
||||
if (!pluginsControllerHasRunRef.current.is_initialized_load_plugin) {
|
||||
asyncInitLoadPlugins().then(() => {
|
||||
updateIsInitializedLoadPlugin(true);
|
||||
});
|
||||
asyncInitLoadPlugins();
|
||||
pluginsControllerHasRunRef.current.is_initialized_load_plugin = true;
|
||||
}
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user