blob: 393c52d57b2817f33726fcf3977f7dbd458bc633 (
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());
}
}
|