Skip to content

Vue Head Is not reactive #102

@chaderenyore

Description

@chaderenyore

Suppose in my data I set articleTItle to null or ' ';

articleTitle: null,

and then in vue head

title: function () {
        return {
          inner: this.articleTitle,
          separator: "-",
          complement: "Coin Profit Blog",
        };
      },

It will take the null and stick to it alone, if the articleTitle should change the title doesn't change
this.articleTitle = this.post.data.article_title;

Vue head is not reactive it doesn't react to the changes, it just takes the first value and stick to it.
I reallly need it to be reactive so that after fecthing the blog data then the tile will change. I know this can be done with Nuxt well, but I'm not using Nuxt now, I really need this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions