UNPKG

@macrof/shared

Version:

React MicroFrontend Shared, Typescript, Webpack 5, ModuleFederation

16 lines (15 loc) 460 B
import { FactoryStore } from "./factory/FactoryStore"; import { RootStore } from "./rootStore"; import { EmployeeStore } from "./employeeStore"; export class Store extends FactoryStore { constructor() { super(); this.rootContainer = this.rootContainerFactory(); } init() { return { rootStore: new RootStore(this.rootContainer), employeeStore: new EmployeeStore(this.rootContainer) }; } }