Replies: 3 comments 2 replies
-
You should already have the full route config object since that's what is passed to It won't have everything that is included in https://reactrouter.com/en/main/routers/create-browser-router |
Beta Was this translation helpful? Give feedback.
-
You can refactor your code to export your routes. Even if it is dynamically populated.
|
Beta Was this translation helpful? Give feedback.
-
what about when we're using Framework mode and we're using flatRoutes? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, I use useMatches to get the routes that matches with current url path. But I would like to get the list from all routes defined like useMatches returns.
Beta Was this translation helpful? Give feedback.
All reactions