How to get LWC component to refresh when that page is updated?

How to get LWC component to refresh when that page is updated?

[It would be even better if it could refresh when the related list is updated by adding or deleting children through the “Related Lists” standard component]

How to update standard related list in LWC?

Upon click LWC pops up that shows same number of records. User edits the “Sort order” custom column for more than 1 record and click on “Save and Close”. Once this pop-up closes than updated “Sort order” should auto. reflect in Standard related list which has same field.

Where do I find the LWC in Lex?

As understood from your comments, you have a LWC on a Lighting page in LEX along with other standard components, viz., related list. And that upon updates on the LWC, you want the standard related list to be refreshed.

When to call updaterecord in LWC JavaScript?

Then, you can call this updateRecord () function in your lwc javascript file whenever you want your detail record page (i.e. Account Detail Page) to refresh. In the following example, I have a lwc that lives on my lightning detail page on the Account record (i.e. as a side-bar component).

How to get a LWC component on a record page?

The component leverages the uiRecordAPI’s getRecord service to obtain the field values it needs from the actual record and uses a custom wired Apex method to query the relevant children using the ID returned by getRecord (this ensures the wired method is called only after getRecord has returned the details).

Why does LWC DataTable not refresh its view?

The first time I’m doing this the view of the datatable is refreshed after the tableData property gets updated. But every other time than the first one theres no refresh of the view. according to the console the tableData property gets properly updated but i dont see any new rows in my datatable. with exactly the same effect.

How to refresh the detail record in Lightning?

You will need to import the updateRecord method from the lightning/uiRecordApi. Then, you can call this updateRecord () function in your lwc javascript file whenever you want your detail record page (i.e. Account Detail Page) to refresh.