0

We have a Quick action on Standard Opportunity record Page Layout which simply opens a new Tab that contains a LWC component. The problem is if the user goes back to the Opportunity Tab while this other tab is already opened to open another opportunity and clicks the same Quick action, it just redirects back to the LWC tab but the content is not refreshed.

It seems like it's just hide/unhide of the tabs and nothing inside the component (like Connected Callback() or Rendered Callback() etc.) gets called through which we could write refresh apex() or reload method to get the fresh data rendered.

The worst thing is even if we close the tab, and open a third Opportunity it still opens a tab with the first record.

Just used the simple code for redirect:

this[NavigationMixin.Navigate]({
    type: 'standard__navItemPage',
    attributes: {
        apiName: 'Opportunity_Scheduler_Tab'
    },
    state: {
        c__recId: this.recordId,
        c__typeId: this.parentOppty.RecordTypeId
    }
});

Is there a way we could refresh the page/tab/content each time we land on the new Tab?

Appreciate your help!

1
  • Show use the code on how you are receiving the state parameter
    – zaitsman
    Sep 27, 2021 at 0:52

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.