Skip to content

QUESTION: Is there any way to override composition API setup data? #761

@luucasrb

Description

@luucasrb

The documentation says:

notice that setData does not modify composition API setup() data.

Also I've tried global.provide, but it only works for provide/inject methods.

So, the goal here is to wrap some variables declared in the setup() component function (probably inside Mount or shallowMount methods) so I can test it isolated.

Appreciate any help!

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