Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提供 createStore 方法 #105

Closed
Diablohu opened this issue May 6, 2019 · 1 comment
Closed

提供 createStore 方法 #105

Diablohu opened this issue May 6, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@Diablohu
Copy link
Member

Diablohu commented May 6, 2019

替代 reduxForCreateStore

Diablohu added a commit that referenced this issue May 28, 2019
@Diablohu
Copy link
Member Author

Diablohu commented May 29, 2019

const { createStore } = require('koot');

/** @type {Object|Function} 项目使用的 reducer,可以是形式为 Object 的列表,也可以是 reducer 函数 */
const appReducers = require('./reducers.js');
/** @type {Array} 项目使用的 middleware 列表 */
const appMiddlewares = require('./middlewares.js');

module.exports = () => createStore(appReducers, appMiddlewares);

@Diablohu Diablohu added enhancement New feature or request and removed feature request labels Sep 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant