plane/web/store/issue-views/Issue_details.ts
2023-09-08 13:06:02 +05:30

30 lines
573 B
TypeScript

import { observable, action, computed, makeObservable, runInAction } from "mobx";
// types
import { RootStore } from "../root";
export interface IIssueViewStore {
loader: boolean;
error: any | null;
}
class IssueViewStore implements IIssueViewStore {
loader: boolean = false;
error: any | null = null;
// root store
rootStore;
// service
constructor(_rootStore: RootStore) {
makeObservable(this, {
// observable
loader: observable,
error: observable,
});
this.rootStore = _rootStore;
}
}
export default IssueViewStore;