Jason Sun
Jason Sun
Hi, I found that it throws exception when some field not exists in context and I fixed this, pls agree merge this into master branch.
首先,这个例子非常好,了解了如何开发基于Redux + React的单页面应用。 有个小问题,报告一下,希望能完善得越来越好。 复现条件: 1、创建两条todo(如第一条abc,第二条def) 2、调整显示规则为ACTIVE 3、将第一条abc变为completed. 问题现象: 点击第二条def,def无法变为completed。 原因分析: TodoList/index.js中10-14行的12行this.props.onTodoClick(index)中的index不是全局的索引值,是当前活动Todo列表的索引值。 一种解决方法: container/App.jsx中selectTodos方法从state中取出todos之后,补充全局的index字段后再传给UI组件: function selectTodos(todos, filter) { **let todosWithIndex = todos.map((todo, index) => Object.assign({}, todo, {index}));** switch (filter) {...
1、修改POM文件适配Java8语法 2、修正ClassReader对ConstantStringInfo类型判断的错误 3、删除BasicAttribute不必要的打印语句