🚨 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

Multiple Routers

Multiple routers add extra flexibility to your app. For instance each example on this page is a nested router.

Nested routers can store their URL in the address bar, localStorage or the current session.

Multiple Trees

While the default route tree lives in src/routes, we can add as many route trees as we want and attach them to their own routers.

Shared Tree

We can also use the existing route tree, by setting rootNode to any node from the current node tree.

Note: The example routers above are set to share their URLs with the actual browser. They will do so for as long as they exist. Ie. as long as the examples stay open.