[Update/bugfix] Plugins: For development, fix hot reload issue that was restart every time updated the files.

This commit is contained in:
Sakamoto Shiina
2025-03-26 00:45:29 +09:00
parent 824a9fa0a9
commit 1ebdefcd43
8 changed files with 22 additions and 20 deletions

View File

@@ -0,0 +1,14 @@
import { initStore } from "./store/store";
import { MainContainer } from "./main_container/MainContainer";
export const init = (plugin_context) => {
initStore(plugin_context.createAtomWithHook);
const EntryComponents = () => {
return <MainContainer />;
};
plugin_context.registerComponent(EntryComponents);
};
export default init;