-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Open
Labels
has workaroundA workaround has been found to avoid the problemA workaround has been found to avoid the problemscope: suspensescope: transition🔩 p2-edge-case
Description
Vue version
3.5.13
Link to minimal reproduction
Steps to reproduce
- Uncomment
<div class="wrapper">
. - Refresh the page.
What is expected?
The h1
element fades in on refresh.
What is actually happening?
The element just appears without any transition.
System Info
System:
OS: macOS 15.0.1
CPU: (8) arm64 Apple M1
Memory: 139.14 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.9.0 - /opt/homebrew/bin/node
npm: 10.8.3 - /opt/homebrew/bin/npm
Browsers:
Safari: 18.0.1
npmPackages:
vue: ^3.5.13 => 3.5.13
Any additional comments?
I have a project which uses transitions with 'appear' prop a lot, and they stopped working when I added Suspense in App.vue. You can see that they work at the root of the component, however this can't always be possible.
Transitions also work if the component is displayed by RouterView and the RouterView is wrapped in Suspense:
<Suspense>
<RouterView />
</Suspense>
But this isn't the recommended way and is probably wrong.
Updated: transitions also work if wrapped in <Suspense suspensible>
: Playground
logotip4ik, cernymatej and DanyloIvashev
Metadata
Metadata
Assignees
Labels
has workaroundA workaround has been found to avoid the problemA workaround has been found to avoid the problemscope: suspensescope: transition🔩 p2-edge-case
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
edison1105 commentedon Nov 19, 2024
the recommended way is
see https://vuejs.org/guide/built-ins/suspense.html#combining-with-other-components
feat: enhance transitions in ZAside, article page, archive
cernymatej commentedon Feb 4, 2025
sometimes, it is not possible to change the order of those components
for example, my modal components have the following structure:
and I would like to wrap them in an async component wrapper with suspense elsewhere
is it considered a bug or will Vue support only the mentioned order of transition + suspense?
mikehwagz commentedon Mar 12, 2025
An example of this being an issue is that it seems to break
appear
for Nuxt page transitions. I created a reproduction of that here: https://github.com/mikehwagz/vue-nuxt-transition-bugHere is an issue in the Nuxt repo about this: nuxt/nuxt#14715
cc @danielroe
If this is actually a Nuxt bug, I am happy to create an issue there. Let me know how I can help!
DanyloIvashev commentedon May 27, 2025
we cannot change the order in NuxtPage @edison1105