aboutsummaryrefslogtreecommitdiff
path: root/src/stores/RootStore.ts
blob: 847fb6807c99945e27aaa9168df72438a5954072 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { action, observable } from "mobx";

// 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());
    }
}