text: import dva from 'dva';
  import { Component } from 'react';
  import createLoading from 'dva-loading';
  import history from '@tmp/history';
  
  let app = null;
  
  export function _onCreate() {
    const plugins = require('umi/_runtimePlugin');
    const runtimeDva = plugins.mergeConfig('dva');
    app = dva({
      history,
      
      ...(runtimeDva.config || {}),
      ...(window.g_useSSR ? { initialState: window.g_initialData } : {}),
    });
    
    app.use(createLoading());
    (runtimeDva.plugins || []).forEach(plugin => {
      app.use(plugin);
    });
    
    app.model({ namespace: 'liveConfig', ...(require('/Users/qietv/Desktop/frontend/web/qie-agora-umi/packages/components/muti-lives/src/models/liveConfig.ts').default) });
  app.model({ namespace: 'streams', ...(require('/Users/qietv/Desktop/frontend/web/qie-agora-umi/packages/components/muti-lives/src/models/streams.ts').default) });
    return app;
  }
  
  export function getApp() {
    return app;
  }
  
  export class _DvaContainer extends Component {
    render() {
      const app = getApp();
      app.router(() => this.props.children);
      return app.start()();
    }
  }
  