Skip to content

Transition's @appear hook invoked even when appear not specified / falsy #9320

Open
@pkaminski

Description

@pkaminski

Version

2.5.22

Reproduction link

https://codepen.io/anon/pen/jXdLGV

Steps to reproduce

Open the repro and note that the rendered page says "initial appear".

What is expected?

The @appear hook should not be invoked and the page should just say "initial".

What is actually happening?

The @appear hook is invoked even though the transition doesn't have an appear attribute, and hence shouldn't be triggering on appear. The same thing happens if you add :appear ="false" to the transition.


Ran into this when building some custom transition components where appear should be user-controlled, but was being invoked all the time instead.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions