plane/apps/app/store/root.ts

21 lines
457 B
TypeScript
Raw Permalink Normal View History

// mobx lite
import { enableStaticRendering } from "mobx-react-lite";
// store imports
import UserStore from "./user";
import ThemeStore from "./theme";
2023-08-10 12:21:47 +00:00
import LabelStore from "./labels";
enableStaticRendering(typeof window === "undefined");
export class RootStore {
user;
theme;
labelStore: LabelStore;
constructor() {
this.user = new UserStore(this);
this.theme = new ThemeStore(this);
this.labelStore = new LabelStore(this);
}
}