Skip to content

Commit

Permalink
Fix <Edit> ignores mutation meta when updating the getOne cache
Browse files Browse the repository at this point in the history
Closes #9542
  • Loading branch information
fzaninotto committed Oct 29, 2024
1 parent 60bae65 commit 19cec73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ra-core/src/controller/edit/useEditController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export const useEditController = <
: '',
});

const recordCached = { id, previousData: record };
const recordCached = { id, previousData: record, meta: mutationMeta };

const [update, { isPending: saving }] = useUpdate<RecordType, ErrorType>(
resource,
Expand Down

0 comments on commit 19cec73

Please sign in to comment.