How to get list of all routes #9280
Unanswered
andrecasal
asked this question in
Q&A
Replies: 1 comment
-
There's a lot of properties on the window object that could be useful. Usual disclaimer being that these are internal and could break in any update. window.__remixRouter
window.__remixRouteModules
window.__remixManifest Once you have the router object you can do lots of things if you are okay using private/internal methods: const routes = window.__remixRouter.routes; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to get a list of all existing routes (outside of a route/inside a Playwright test)?
Beta Was this translation helpful? Give feedback.
All reactions