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
Ken Koellner @ EngagewareKen Koellner @ Engageware 

Lightning Web Component Quick Action, will page refresh when action is closed?

I want to write a Lightning Web Component that launches as a Quick Action from a button on a Lightning record page just like the Edit button does where a modal window opens and the record page is grayed out until the model window closed.  That component will make some changes to the record.

Question, when the component closes and the record page behind it is reactivated, will it be updated to reflect that latest data?
Tushar sharmaTushar sharma
You can fire the refreshView to refresh the screen using Lightning component..
$A.get('e.force:refreshView').fire();

You cannot use LWC directly in Quick action, I have written a blog post covering this topic.
​​​​​​​https://newstechnologystuff.com/2019/12/29/close-quick-action-from-lightning-web-components/ (https://https://newstechnologystuff.com/2019/12/29/close-quick-action-from-lightning-web-components/)
Ken Koellner @ EngagewareKen Koellner @ Engageware
That's for the reply.  Good stuff in your blog.  One follow up question.  I would assume the quick action launches the QA_LC lightning component.  But I don't see anyting in that component that would cause it to contain the lwcQA Lightning Web Component.  Can  you relate what cause the LWC contents to appear in the LC?  DId I miss something in the code?  
Ken Koellner @ EngagewareKen Koellner @ Engageware
Oops I did miss something.   The aura component has the line --
<c:lwcQA recordId="{!v.recordId}" onclose="{!c.closeQA}"/>

c:lwdQA is a reference to the Lightning Web Component
Ken Koellner @ EngagewareKen Koellner @ Engageware
Oops, I missed the line--

<c:lwcQA recordId="{!v.recordId}" onclose="{!c.closeQA}"/>

The c:lwcQA brings in the LWC.