We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Redux 已然是 Flux 方案中的佼佼者,不必重复造轮子,直接使用 Redux 即可;
The text was updated successfully, but these errors were encountered:
移除了 connect / composeReducer / bindActions 等 API,请直接使用 redux / react-redux 提供的对应 api;
ei.actions 现在是 actionCreators,包含了 init 和 replace 两个 action creator; 现在,ei 还提供了 ei.actionTypes,包含 INIT 和 REPLACE 两个常量,原有的 INIT 常量的文本值也发生了变化,添加了前缀变为 ei/INIT;而 REPLACE 的文本值为 ei/REPLACE;
ei/INIT
ei/REPLACE
示例:
ei.actionTypes = {INIT: 'ei/INIT', REPLACE: 'ei/REPLACE'}; ei.actions = {init: () => {}, replace: {}};
REPLACE 与 replace 是用于 page.setState() 的内部实现,不建议直接使用;
REPLACE
replace
page.setState()
middlewares 现在的 api 为 page => store => next => action => {};
即接受 page 实例,返回一个标准的 redux middleware;
代码示例:
module.exports = function (page) { return store => next => action => { if (typeof action !== 'function') { let {event, type} = action; page.emit(event || type, action); } return next(action); }; };
从 edp 切换到 gulp 和 webpack;
edp
gulp
webpack
现在不再分别针对 node 和 front end 提供两份不同的代码,只提供一份 umd 格式的合并压缩版本代码;具体的:
umd
lib/ei.js
Sorry, something went wrong.
jinzhubaofu
No branches or pull requests
Redux 已然是 Flux 方案中的佼佼者,不必重复造轮子,直接使用 Redux 即可;
The text was updated successfully, but these errors were encountered: