import { createStore , Store } from 'redux' ; export const proxyStore = createStore ( ( ) => ( { } ) ) ; const dispatch = ( ) => { proxyStore . dispatch ( { type : '-' , } ) ; } ; /**
 * 绑定项目里共存的状态库的store。同时满足下列条件才有意义：
 *
 * 1. 在项目中用到 connect() 高阶组件
 * <br>
 * 2. 共存库也是基于redux和react-redux
 */ export const combine = ( otherStore ) => { otherStore . subscribe ( dispatch ) ; } ;