store.ts 317 B

12345678910111213141516
  1. import { RootStore, IRootStore } from './RootStore/RootStore';
  2. import config from 'app/core/config';
  3. export let store: IRootStore;
  4. export function createStore(backendSrv) {
  5. store = RootStore.create(
  6. {},
  7. {
  8. backendSrv: backendSrv,
  9. navTree: config.bootData.navTree,
  10. }
  11. );
  12. return store;
  13. }