Is there possibility to refresh the standard related list from LWC, as we can do it using $A.get('e.force:refreshView').fire() in aura?
Any alternative to "$A.get('e.force:refreshView').fire() " in LWC
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityI have used getRecordNotifyChange() function to refresh the required list of records, for more info please follow the below:
https://blog.texei.com/refresh-a-record-page-from-a-lightning-web-component-14a5874ff68e
you can also trick it with
eval("$A.get('e.force:refreshView').fire();");
Starting Spring 23, you can use RefreshAPI(Beta). This is currently in BETA but if you have a preview sandbox you can try the below
To refresh it import the module as shown below
import { RefreshEvent } from 'lightning/refresh';
And to refresh the standard components simply dispatch a Refresh event like below
this.dispatchEvent(new RefreshEvent());