fish-redux
fish-redux copied to clipboard
示例项目新增全选按钮更新列表,状态不更新
Describe the bug 示例项目新增全选按钮更新列表,状态不更新
ToDoListPage 中新增一个按钮
//effect中
void _onSelectAllAdd(Action action, Context<PageState> ctx) {
ctx.dispatch(PageActionCreator.loadSelectAll());
}
//reducer中
PageState _loadSelectAll(PageState state, Action action) {
final PageState stateClone = state.clone();
stateClone?.toDos?.forEach((ToDoState stateItem) {
stateItem.isDone = true;
stateItem.title = "ssssss";
});
return stateClone;
}
//点击按钮 ,列表无更新(debug 数据有变化)
To Reproduce Steps to reproduce the behavior.
Expected behavior A clear and concise description of what you expected to happen.
Additional context
- version :0.3.1
这框架已经是半生半死的状态,都是kpi搞得祸。
@xjh22222228 所以这个东西跟那个什么flutter-go一样?大厂的东西火了一波就不维护了?
@rhymelph 是的,都是坑,还是老老实实原生,原生都有这么多Bug,更别说这第三方了。