Skip to content

Commit c827f9b

Browse files
committed
chore: fix card refresh issue
1 parent 311c6ae commit c827f9b

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

frontend/app_flowy/lib/plugins/board/application/board_bloc.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,6 @@ class GroupControllerDelegateImpl extends GroupControllerDelegate {
317317

318318
@override
319319
void updateRow(String groupId, RowPB row) {
320-
// workaround: fix the board card reload timing issue.
321-
Future.delayed(const Duration(milliseconds: 300), () {
322-
controller.updateColumnItem(groupId, BoardColumnItem(row: row));
323-
});
320+
controller.updateColumnItem(groupId, BoardColumnItem(row: row));
324321
}
325322
}

frontend/app_flowy/lib/plugins/board/application/card/board_select_option_cell_bloc.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ class BoardSelectOptionCellState with _$BoardSelectOptionCellState {
6868
factory BoardSelectOptionCellState.initial(
6969
GridSelectOptionCellController context) {
7070
final data = context.getCellData();
71-
7271
return BoardSelectOptionCellState(
7372
selectedOptions: data?.selectOptions ?? [],
7473
);

frontend/app_flowy/lib/plugins/grid/application/cell/cell_service/context_builder.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ class IGridCellController<T, D> extends Equatable {
190190
/// cell display: $12
191191
_cellListener?.start(onCellChanged: (result) {
192192
result.fold(
193-
(_) => _loadData(),
193+
(_) {
194+
_cellsCache.remove(fieldId);
195+
_loadData();
196+
},
194197
(err) => Log.error(err),
195198
);
196199
});

frontend/rust-lib/flowy-grid/src/event_handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ pub(crate) async fn create_table_row_handler(
269269
data_result(row)
270270
}
271271

272-
// #[tracing::instrument(level = "debug", skip_all, err)]
272+
#[tracing::instrument(level = "trace", skip_all, err)]
273273
pub(crate) async fn get_cell_handler(
274274
data: Data<GridCellIdPB>,
275275
manager: AppData<Arc<GridManager>>,

0 commit comments

Comments
 (0)