首先假设存在一个完整的redux的应用
这个变量需要单独的export出去
其他单独的工具函数
import {reduxStore} from '../index'
import {showLoading, hideLoading} from "../redux/app.redux";
// 然后可以直接获取
console.log('getState....', reduxStore.getState())
// 和调用里面的方法
reduxStore.dispatch(showLoading())