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
Deven DamianoDeven Damiano 

Call function after navigationmixin.navigate new record modal closed

I'm using the following to open a new record modal on a custom lwc
this[NavigationMixin.Navigate]({
      type: 'standard__objectPage',
      attributes: {
          objectApiName: this.childObjectApiName,
          actionName: 'new'                
      },
      state : {
          count: '1',
          nooverride: '1',
          useRecordTypeCheck : '1',
          defaultFieldValues: inheritParentString,
          navigationLocation: 'RELATED_LIST'
      }
    });

What I need is after the user saves inside of the popup, to run a function that refreshes my lwc component. Unfortunately, I've found no way to trigger anything after the modal is closed. I've tried listening for platform events, appending  .then(result => {}) to the end of the navgation mixin function, but all have failed miserably, and I have lost all hope. Does anyone have any ideas I how to accomplish this? Please help..
AbhishekAbhishek (Salesforce Developers) 
Try the suggestion as mentioned below,

https://salesforce.stackexchange.com/questions/254496/lwc-navigation-thisf-navigationmixin-navigate-is-not-a-function

https://salesforce.stackexchange.com/questions/284484/avoid-navigation-to-newly-created-record-using-navigationmix
Nancy ChandlerNancy Chandler
MyMorri is the login portal for the employees of Morrisons available at https://www.myfeedbackcard.com/mymorri/