grafana/public/app/stores/store.ts
David Kaltschmidt f1220fd2a4 Explore WIP
2018-04-26 20:27:19 +02:00

17 lines
304 B
TypeScript

import { RootStore, IRootStore } from './RootStore/RootStore';
import config from 'app/core/config';
export let store: IRootStore;
export function createStore(services) {
store = RootStore.create(
{},
{
...services,
navTree: config.bootData.navTree,
}
);
return store;
}