Client-Side Routing in LWR on Node.js

You can use client-side routing (CSR) in LWR on Node.js for sophisticated control over your web application’s routing and navigation behavior.

  • To learn the essential concepts, architecture, and steps for using CSR, start on this page: Routers and Route Matching.
  • Ready to Create a Router? This page outlines how to use the createRouter() API and the Router Module Provider.
  • The Simple LWR Client-Side Routing example shows the process of creating a single-page LWR application (SPA) with client-side routing.
  • For details about the APIs, interfaces, wires, and Lightning web components that support LWR’s client-side routing, visit the LWR Client-Side Routing Reference.

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.