grip
Set ref in useAsyncData
Aha! I thought about callonce as well. I'll try both tomorrow. Awesome alex, thanks a lot!
It's a huge app and I want to create the Nuxt 3 version with as minimal changes as possible and then start rennovating on a solid foundation
26 replies
Dynamically add routes in runtime based on pinia store value
@kapa.ai
i dont want to add the routes to my router.options, as that would expose their urls and i dont want that. they are protected nonetheless but i dont want these urls exposed
cant i use something like this
nuxtApp.$router.addRoute({
path: '/admin',
name: 'admin',
component: '~/pages/a.vue',
});
}
15 replies