瀏覽代碼

fix: listen on listState if changed

appflowy 3 年之前
父節點
當前提交
ea654b602c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/grid_page.dart

+ 1 - 0
frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/grid_page.dart

@@ -193,6 +193,7 @@ class _GridRowsState extends State<_GridRows> {
   @override
   Widget build(BuildContext context) {
     return BlocConsumer<GridBloc, GridState>(
+      listenWhen: (previous, current) => previous.listState != current.listState,
       listener: (context, state) {
         state.listState.map(
           insert: (value) {