[SalesForce] Lightning component button refresh

I have a lightning component button that updates the status of a case when clicked in Lightning. Is there a function that I can use to have the page refresh when clicked because as of now, I have to refresh the page manually to see the update?

Best Answer

you can use $A.get("e.force:refreshView").fire(); to refresh View.

Here is documentation link: https://developer.salesforce.com/docs/component-library/bundle/force:refreshView/documentation