An outlet dynamically renders view components. A view is the component to display when the application navigates to a location.
This process is naturally lazy: the view isn’t imported until the outlet consumes it, so any unused views aren’t fetched. When the router’s view state changes, the outlet is flagged to display the view. Then, if the view module hasn’t already been fetched, there may be an asynchronous process to retrieve it.
The @lwrjs/router package provides an implementation of lightning/navigation. The lightning/navigation module is an alias for the lwr/navigation module, so it includes the same wires and APIs, along with NavigationMixin. This allows you to write a component once and use it anywhere that supports the lightning/navigation contracts.
Developer Preview Feature
Feature is available as a developer preview. Feature is not generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. All commands, parameters, and other features are subject to change or deprecation at any time, with or without notice. Do not implement functionality developed with these commands or tools.