Commit 510239c
authored
The bottom BulkActionBar's string bulk actions (e.g. 下推 / 派工) and the row
action menu both dispatched via executeAction but never bumped refreshKey, so
the grid kept showing stale data after the server mutation completed — and the
selection toolbar stayed stuck. Only the delete branch (onBulkDelete) and the
rich BulkActionDialog (handleBulkDialogClose) refreshed.
ObjectGrid self-fetches on refreshKey and has no onMutation subscription, and
custom bulk APIs bypass dataSource.update, so nothing else signals a refetch.
On a successful action, reset the selection and bump refreshKey so the list
reflects the server state (mirrors the delete + dialog branches).
Adds bulkActionRefresh.test.tsx driving the full path (header checkbox →
BulkActionBar → dispatchBulkAction → runner handler) against an in-memory fake
server, asserting a refetch + selection reset on success and neither on failure.
1 parent 1d5e6e9 commit 510239c
0 file changed
0 commit comments