While navigating from one Salesforce Lightning Web Component to another Salesforce LWC, you’ll need a PageReference Object of Lightning Component Type that works only in the Salesforce Lightning Experience Salesforce Mobile App. This can be achieved by creating an additional Aura Component, but to do so you need to implement lightning:isUrlAddressable which will be added as an interface to directly navigate to Lightning Component via URL.
This blog will help you to navigate and pass values from Salesforce Lightning Web Component to another Lightning Web Component without creating an Aura Component. Let’s dive in.
Create two Salesforce Lightning Web Component,
As the name suggests, sourcelwc will be responsible for taking user input and passing it to targetlwc. Enough talks let’s see the real magic.