Skip to content

shallowReactive inside a reactive object is not respected when the property is reassigned #5271

@sqal

Description

@sqal

Version

3.2.26

Reproduction link

SFC Playground

Steps to reproduce

  • click add
  • click reset
  • click add

What is expected?

I expect the values of the state.data array to always be non-reactive

What is actually happening?

Values inside the array are not reactive only the first time. When a new shallow reactive array is assigned, then its values become reactive.

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