Navigation & State
Taxi loads each page without a full browser refresh. Alpine resets page-specific interactions while shared controls keep their state.
This page's counter
Resets when you leave
Try it out
- 01Increase this counter and the counter at the bottom of the page.
- 02Navigate to another page.
- 03Return here. This counter resets while the shared counter keeps its value.
Implementation / Navigation
How it works
Taxi removes the current page before Alpine clears its state. Alpine then starts the interactions on the next page.
-
assets/scripts/app.jsTaxi setup and accessibility options.
-
assets/scripts/renderers/DefaultRenderer.jsCoordinates each page change.
-
assets/scripts/plugins/AlpinePlugin.jsStarts and clears Alpine interactions.