plane/apps/app/store/root.ts
guru_sainath b6744dcd29
Chore: mobx setup and app sidebar and theme management (#1798)
* dev: Mobx integration for app sidebar and custom theme

* dev: Handled edge case and conditional rendering for mobx store
2023-08-08 12:50:27 +05:30

18 lines
352 B
TypeScript

// mobx lite
import { enableStaticRendering } from "mobx-react-lite";
// store imports
import UserStore from "./user";
import ThemeStore from "./theme";
enableStaticRendering(typeof window === "undefined");
export class RootStore {
user;
theme;
constructor() {
this.user = new UserStore(this);
this.theme = new ThemeStore(this);
}
}