Open
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