Skip to content

Vue Warn: direct mutation of existingTags #94

@homersimpsons

Description

@homersimpsons

Hello, thank you for your awesome component.

I'm using it on a project and came across an issue (that do not break anything).

When using typeahead-url Vue shows a warning:

[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "existingTags"

I guess this is because of the assignation here at least

that.existingTags = JSON.parse(xhttp.responseText);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions