blob: fa551c1d11972cf09bca6e45373ce18da7e34814 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { action, observable } from "mobx";
import { NodeStore } from "./NodeStore";
// This globally accessible store might come in handy, although you may decide that you don't need it.
export class RootStore {
private constructor() {
// initialization code
}
private static _instance: RootStore;
public static get Instance():RootStore {
return this._instance || (this._instance = new this());
}
}
|