function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nagarajan CNagarajan C 

Hi , Need to refresh lwc components two independent components

Hi ,
Need to refresh lwc components two independent components .

i used messgae lightning service to pass the value . based on value api call and child components i have data table so how to refresh the page.
AM not using apex class using apex continution . need to auto refresh the LWC.

Can you please help on this.

Thanks
C.Nagarajan
PriyaPriya (Salesforce Developers) 

Hi Nagarajan,

Check this example that matches your requirements  :- 

https://salesforce.stackexchange.com/questions/323944/how-to-refresh-the-component-in-lwc-after-successful-save-of-standard-record-pag

for more information refer below links :-

https://newbedev.com/force-refresh-view-in-lwc

https://blog.texei.com/refresh-a-record-page-from-a-lightning-web-component-14a5874ff68e

Please mark it as best answer if you find this information helpful.

Regards,

Priya Ranjan

Ronak LRonak L
Hi Nagarajan,

1 Pubsub library or lightning message service to communicate between components that are not in the same DOM hierarchy.
2 force:refreshView.

Regards,
Ronak Luniya