Skip to content

DNLZ/LWC-History-API-Example

Repository files navigation

LWC History API Example

This example demonstrates how to make the browser's Forward and Back buttons work with a wizard built with LWC (with no full page refresh).

Blog Post: https://sfdc.danielzeidler.com/2019/12/19/integrating-the-browsers-back-and-forward-buttons-in-a-lightning-web-component/

Installation via SFDX

  1. Create a scratch org:
sfdx force:org:create -s -f config/project-scratch-def.json -a lwc-history-example
  1. Push the app to your scratch org:
sfdx force:source:push
  1. Assign the LWC History Example permission set to the default user:
sfdx force:user:permset:assign -n LWC_History_Example
  1. Open the scratch org:
sfdx force:org:open
  1. In App Launcher, select the LWC History Example app.

About

This example demonstrates how to make the browser's forward and back buttons work inside a wizard built with LWC (with no page reload).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published