I am trying to call an LWC and pass the Id. However the second LWC variable is undefined.
First LWC:
this[NavigationMixin.Navigate]({
type: 'standard__navItemPage',
attributes: {
apiName: 'secondLWC',
},
state: {
c__recordId: 'someId...'
}
});
The second LWC Opens but when RenderedCallback runs "recordId" us undefined
recordId;
renderedCallback() {
console.log('In renderedCallback');
console.log('recordId: ', this.recordId); //undefined
}