From 0616bd97ed891e13a1484049d5eaed18eed3e5e1 Mon Sep 17 00:00:00 2001 From: djhi <1122076+djhi@users.noreply.github.com> Date: Wed, 27 Nov 2019 12:38:43 +0100 Subject: [PATCH] Fix List does not Refresh Correctly after Optimistic Update --- packages/ra-core/src/dataProvider/useDataProvider.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/ra-core/src/dataProvider/useDataProvider.ts b/packages/ra-core/src/dataProvider/useDataProvider.ts index 0bfb26c8b33..c16455a174d 100644 --- a/packages/ra-core/src/dataProvider/useDataProvider.ts +++ b/packages/ra-core/src/dataProvider/useDataProvider.ts @@ -266,6 +266,7 @@ const performUndoableQuery = ({ warnBeforeClosingWindow ); } + dispatch(refreshView()); }) .catch(error => { if (window) {