[TMP] Plugins system.
This commit is contained in:
17
src-ui/app/_app_controllers/PluginsController.jsx
Normal file
17
src-ui/app/_app_controllers/PluginsController.jsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { useEffect } from "react";
|
||||
import { usePlugins } from "@logics_configs";
|
||||
|
||||
// ホスト側でReactやjotaiをグローバル変数として提供
|
||||
import ReactModule from "react";
|
||||
if (typeof window !== "undefined") {
|
||||
window.React = ReactModule;
|
||||
}
|
||||
|
||||
export const PluginsController = () => {
|
||||
const { loadAllPlugins } = usePlugins();
|
||||
useEffect(() => {
|
||||
loadAllPlugins();
|
||||
}, []);
|
||||
|
||||
return null;
|
||||
};
|
||||
Reference in New Issue
Block a user