Components changing as page transition starts instead of after leave
Hello! I have a component that renders different content based on a prop that I am passing into it from different pages. When I navigate from one page to another that both have the component (but different content because it's a different prop) the content changes before the page transition fadeout finishes, causing an undesirable jump of content on the page. Any ideas on how to solve this? I am using global page transitions as noted below
1 Reply
Hello
Fully random thought : You can't play with the Transition hook to update/print your new contant after the transition ?
https://nuxt.com/docs/getting-started/transitions (JavaScript Hooks)
Never faced this use case sorry, my next best idea would be to have a look at the lifecycle with the same general idea : a way to deal with my data at the end at the transition
Now that I'm thinking about what I'm writing, might be breaking the SSR if you need it ^^" ?
I don't use it for my project so..... no other idea sorry