[Update/bugfix] Plugins: For development, fix hot reload issue that was restart every time updated the files.
This commit is contained in:
14
src-ui/plugins/plugin_examples/index.jsx
Normal file
14
src-ui/plugins/plugin_examples/index.jsx
Normal 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;
|
||||
Reference in New Issue
Block a user