Skip to content

Commit

Permalink
do not clear cache on delete
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Jun 24, 2020
1 parent e49cd7c commit 9427245
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core-data/src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ export function* deleteEntityRecord( kind, name, recordId ) {
return;
}

yield removeItems( kind, name, recordId, true );
// surprisingly clearing the cache - the last argument
// will reset the state with data which was deleted
yield removeItems( kind, name, recordId, false );

try {
let path = `${ entity.baseURL }/${ recordId }`;
Expand Down

0 comments on commit 9427245

Please sign in to comment.