Skip to content

[Vue warn]: Error in callback for watcher #5530

@wiloke

Description

@wiloke

Hi
I'm using watches in my code, it's working
watch: { oItems: function(newVal){ } }, created(){ this.fetching(); }, methods:{ fetching(){ axios.get(this.buildUrl) .then(response=>{ this.oItems = response.data; }) } }
but I always get [Vue warn]: Error in callback for watcher "oItems":
fetching(){ axios.get(this.buildUrl) .then(response=>{ this.oItems = response.data; _.map(this.oItems, (oVal=>{ // stuff here })); }) }
Could you explain me why?

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