fish-redux icon indicating copy to clipboard operation
fish-redux copied to clipboard

示例项目新增全选按钮更新列表,状态不更新

Open yanglilizhang opened this issue 4 years ago • 3 comments

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

  1. version :0.3.1

yanglilizhang avatar Mar 13 '20 03:03 yanglilizhang

这框架已经是半生半死的状态,都是kpi搞得祸。

xjh22222228 avatar Jul 31 '20 05:07 xjh22222228

@xjh22222228 所以这个东西跟那个什么flutter-go一样?大厂的东西火了一波就不维护了?

rhymelph avatar Jul 31 '20 06:07 rhymelph

@rhymelph 是的,都是坑,还是老老实实原生,原生都有这么多Bug,更别说这第三方了。

xjh22222228 avatar Jul 31 '20 06:07 xjh22222228