How to refresh lightning web component?.
Use below method to refresh to lightning web component.
- refreshApex function call apex method and re load latest data in track variable.
- now your LWC have the latest data.
refreshApex(this.yourTrackVariable);
Use below method to refresh to lightning web component.
- refreshApex function call apex method and re load latest data in track variable.
- now your LWC have the latest data.
refreshApex(this.yourTrackVariable);