소스 검색

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) {