🚨 Disclaimer: Routify 3 is currently in Release Candidate stage.

Please be aware that while the documentation is comprehensive, it may contain inaccuracies or errors. The codebase is also subject to changes that could affect functionality. We appreciate your understanding and welcome any feedback or contributions.

guide

Advanced

Url Reflectors

URL reflectors determine where the URL of a route is stored. By default the URL is stored in the address bar (addressReflector).

There are three bundled URL reflectors to choose from:

  • addressReflector (default) stores the URL in the address bar
  • internalReflector stores the url in memory
  • LocalStorageReflector stores the url in local storage
<script>
    import { LocalStorageReflector } from '@roxi/routify'
</script>

<Router ... urlReflector={LocalStorageReflector} name="my-router" />