Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Incorrect handling of metadata with navigation #32

@jazoom

Description

@jazoom

Say the app.vue parent component at route / has this property:

metaInfo () {
    return {
      title: 'parent title'
    }
}

and a child component at route /child has this property:

 metaInfo() {
    return {
      title: `${this.name}`
    }
 },

When navigating to the child, the title changes correctly. Then when going back, the title stays as the child's title (it should go back to parent title). Then when navigating to the same child component (a different instance), the title flicks to 'undefined' before changing to the new this.name.

What I would expect is that going back from /child to / would change the title back to what it was before the child overrode it. Then I would expect that if this.name is not ready yet when metaInfo is initially called it will leave the current title, rather than changing it to undefined, thus causing the flicker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions