{"size": 567, "ext": "js", "max_stars_repo_path": "src/redux/store/configureStore.dev.js", "max_stars_repo_name": "TomorrowCat/react-admin", "max_stars_repo_stars_event_min_datetime": "2019-01-22T05:32:25.000Z", "max_stars_repo_stars_event_max_datetime": "2019-04-15T06:00:17.000Z", "max_issues_repo_path": "src/redux/store/configureStore.dev.js", "max_issues_repo_name": "TomorrowCat/react-admin", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/redux/store/configureStore.dev.js", "max_forks_repo_name": "TomorrowCat/react-admin", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 4, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.0, "max_line_length": 61, "alphanum_fraction": 0.6031746032}
import { createStore, applyMiddleware, compose } from 'redux'
import thunk from 'redux-thunk'
import DevTools from '@/components/Layout/Main/DevTools'
import asyncLoading from '../middlewares/asyncLoading'
import rootReducers from '../models'

export default (defaultState) => {
    return createStore(
        rootReducers,
        defaultState || {},
        compose(
            applyMiddleware(
                thunk,
                asyncLoading
            ),
            // 非生产环境打开调试工具, ctrl+h显示, ctrl+w切换方向
            DevTools.instrument()
        )
    )
}
