+ Start a Discussion
Athira VenugopalAthira Venugopal 

Is there any way to refresh the lightning:datatable

I am using the lightning:datatable for my custom object. Is there any way to refresh the lightning:datatable after adding some data into it.
AbhishekAbhishek (Salesforce Developers) 

The below blog has a code snippet try it.


For further reference, you can check this too (https://stackoverflow.com/questions/56796657/lwc-how-would-i-refresh-the-data-of-a-lightning-datatable-after-a-new-record-is).

I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.

Athira VenugopalAthira Venugopal
Hi abhishek, I have tried this , but the datatable is not getting refreshed
Pls check this:
AbhishekAbhishek (Salesforce Developers) 
Try the code as mentioned in the above blog.