allow setting default route transition (page/layout) properties globally
See original GitHub issuecurrently it’s only possible to set transition props on a per route basis with definePageMeta
, or via something like this:
export default defineNuxtConfig({
modules: [
// ...
function (options, nuxt) {
nuxt.hook('pages:extend', (pages) => {
for (const page of pages) {
page.meta = {
layoutTransition: false,
pageTransition: false,
}
}
})
}
],
})
It would be better to support configuring this so it can easily be disabled or set on a project-wide base
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Set default transition for go_router in Flutter - Stack Overflow
However, I want to set the default PageTransition for all pages. How do I set the default page transition with/for go_router in Flutter?...
Read more >Transitions - Nuxt
Nuxt uses the transition component to let you create amazing ... The layout transition is used to set the default properties of the...
Read more >Route transition animations - Angular
Implement a router transition animation that slides in the new view to the right and slides out the old view when navigating between...
Read more >Animating Route Transitions with React Router
Configure Routes and Browser Router. With the pages set to be rendered, let's define their routes and what paths they should be rendered...
Read more >Vue Router Page Transitions with Fade, Slide and Zoom Effects
In the code snippet above, you can see that we give the transition the name fade , and we set the mode property...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What about:
Read about the progress in #5859, as soon as it is merged, you will be able to use it by switching to the edge channel.