bots-frontend/store/store.js
2022-11-11 17:03:31 +07:00

22 lines
557 B
JavaScript

import { action, observable, computed, runInAction, makeObservable } from 'mobx'
import { enableStaticRendering } from 'mobx-react-lite';
import { useMemo } from 'react'
import {Sample, SampleStore} from "./sample";
import {LockeyStore} from "./lockey";
// eslint-disable-next-line react-hooks/rules-of-hooks
enableStaticRendering(typeof window === 'undefined')
let store;
export class Store {
sample = new SampleStore(this);
lockey = new LockeyStore(this);
constructor() {
}
hydrate = (data) => {
if (!data) return;
}
}