Skip to content

Vue Warn: direct mutation of existingTags #94

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);

No activity

Activity on this issue will appear here.

Activity

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

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