Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<Transition appear/> not working #22310

Closed
StitiFatah opened this issue Jul 25, 2023 · 10 comments
Closed

<Transition appear/> not working #22310

StitiFatah opened this issue Jul 25, 2023 · 10 comments

Comments

@StitiFatah
Copy link

Environment

  • Operating System: Linux
  • Node Version: v16.19.0
  • Nuxt Version: 3.6.5
  • Nitro Version: 2.5.2
  • Package Manager: yarn@1.22.19
  • Builder: vite
  • User Config: devtools, modules
  • Runtime Modules: @nuxtjs/tailwindcss@6.8.0, @vueuse/motion/nuxt@2.0.0
  • Build Modules: -

Reproduction

https://codesandbox.io/p/sandbox/sleepy-bash-rkcwq7

Describe the bug

The vue docs says : If you also want to apply a transition on the initial render of a node, you can add the appear prop.
https://vuejs.org/guide/built-ins/transition.html#transition-on-appear

There is no transition on the initial render with nuxt, it however works when unmounting/remouting the node afterwards.

Working fine on vanilla vue : https://codesandbox.io/p/sandbox/jovial-kapitsa-qvhxzt

Additional context

No response

Logs

No response

@danielroe
Copy link
Member

I think this is a Vue SSR issue - see if you can reproduce without Nuxt with https://stackblitz.com/github/nuxt-contrib/vue3-ssr-starter

@danielroe
Copy link
Member

Confirmed - see https://stackblitz.com/edit/github-85wcaq?file=src/App.vue. We can track upstream in vuejs/core#6951.

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2023
@liqueflies
Copy link

@danielroe I still see this issue.
Is there a reason for not planning to resolve it?
Just to understand.

A fairly workaround is to add the same animation at "onMounted" but it's not working at the same mode and we loose the beforeEnter hook.

Thank you so much.

@danielroe
Copy link
Member

It's not that we don't want to resolve it, but it is a Vue bug and there is an upstream issue tracking it.

@danielroe
Copy link
Member

Oh, I see it is already meant to be resolved. If you are still encountering it please raise a new issue

@liqueflies
Copy link

You mean on nuxt repo or vue repo?
I've updated the nuxt dependecy to it's latest version from the demo above:
https://codesandbox.io/p/devbox/nuxt3-appear-4pzthr

Issue still present, if you prefer open a new issue, I'll do that but i think it's the same

@danielroe
Copy link
Member

Can you reproduce it with Vue without Nuxt?

@liqueflies
Copy link

Can you reproduce it with Vue without Nuxt?

If this is the vue-ssr template that I found on nuxt, yes, the problem is the same:

https://stackblitz.com/edit/github-jer1rm

Is this again related to vue?

@danielroe
Copy link
Member

Yes, if it reproducible there then it should be raised upstream at vuejs/core

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants