You need to sign in to do that
Don't have an account?
mahamed raheem
refresh the lwc component
I have to refresh the LWC component not the complete page
My scenario is once the record is updated i have to refresh the component.
i have tried below but its not working,
eval("$A.get('e.force:refreshView').fire()");
My LWC component on the service console page
My scenario is once the record is updated i have to refresh the component.
i have tried below but its not working,
eval("$A.get('e.force:refreshView').fire()");
My LWC component on the service console page
1. Import refreshApex method.
import { refreshApex } from '@salesforce/apex';
2. In the place you want to refresh.
refreshApex(this.yourRecord);
Note: yourRecord usually links to @wire method to pull the data from Salesforce.