0

I have an lwc which has lightning-dataTable that displays the files related list for a particular case record. As part of the 'Delete" action, I am calling apex method which deletes the selected file and once it is successful I am showing Toast. But the table is not refreshed and still showing the deleted file record in the table and had to manually refresh it. Is there any mechanism to refresh after show Toast so that table gets refreshed?

1 Answer 1

0

I assume that your datatable component gets the value from the Apex method. If so, you can refresh apex after deleting your record. It will automatically refresh the list of records in your datatable and force it to refresh itself.

2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .