Skip to content

Vue 3: about rerender api design #198

Open
@cuixiaorui

Description

@cuixiaorui

Hi, I'm a little confused when using the rerender API

I wanted to update props, but then I realized that in the next release, I needed to call rerender api

However, I looked at the implementation of rerender and saw that the component instance was re-destroyed and then re-created

But my test requirement is to simulate that the user only updated props

For example, I did this earlier by calling the wrapper. setProps API for vue-test-utils-next

Now the new rerender behaves substantially differently than setProps

The former is destroyed to re-create components based on the new props
The latter is to change the props on a component that has been created previously

I need to have a consistent API and setProps behavior

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