Lightning Web Component refresh on Save - Ideas - Salesforce Trailblazer Community
Trailblazer Community

All Ideas

Idea Details

Post an Idea
1,020  Points
Idea has been posted. Give it an upvote or downvote.

Lightning Web Component refresh on Save

Developer Tools

We have implemented a LWC that gets attached to Contacts and Leads. This LWC just calls an Apex that gets information from an external system and shows some information. We have noticed that after saving an update on the Lead or Contact, the new component does not get refreshed.

We have looked into it being a configuration issue, but after some searching, the closest solution we have found can be seen here and it requires adding an Aura Component layer on top of the LWC to be able to call a refreshView event. Though this technically is a solution, it just seems inapropiate to have to use an older version of the same technology as an upper layer to achieve the desired behaviour.

One of the comments mentions that the standard Salesforce Components are made with LWC and they do respond to refreshView, so it seems like it's something that a custom LWC should be able to do, is there any chance this could be formerly implemented to allow access to the refreshView event on custom LWC?

Merge Idea · Flag

  • Upvotes
  • Downvotes



from AppExchange

Help us to keep IdeaExchange clean by pointing out overlapping ideas. We'll investigate your suggestion and merge the ideas if it makes sense.



Thanks for your merge suggestion. We will review it shortly and merge the ideas if applicable.

Salesforce takes abuse situations very seriously. Examples of abuse include but are not limited to posting of offensive language or fraudulent statements. To help us process your request as quickly as possible, please fill out the form below describing the situation. For privacy and security reasons, the final outcome of an abuse case may not be revealed to the person who reported it.


Thank you for your feedback. We take abuse seriously and will investigate this issue and take appropriate action.