Is there any way to access the configs of all routes? #2538
-
I want to utilize the meta feature to manage the UI data needed to display the sidebar declaratively and close to the route file. export default {
meta: {
menu: {
env: {
server: true,
client: true,
},
cumulative: true,
},
},
} I see that I can use
When a route is configured as shown above, page-a-1 cannot see the configuration for page-b. This feels natural. However, I would like to access the configuration of the entire route from a component like Is there a way to do this or is it possible to implement a feature? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Self answered: Use |
Beta Was this translation helpful? Give feedback.
Self answered: Use
eager
property