Skip to content

Symbol-keyed properties non-reactive #10734

Open
@dansebcar

Description

@dansebcar

Version

2.6.10

Reproduction link

https://jsfiddle.net/dansebcar/b75n0uw6/16/

Steps to reproduce

  • Press update to change each item's name to "b"

What is expected?

The list re-renders with the new name

What is actually happening?

The list does not change


If we instead define "symbol" as any non-empty string, the expected re-render is observed, so I think the cause is just the parent list (items) is accessed through a symbol.

Nesting the symbol property an additional level (IE in config, rather than directly on data) is necessary to render the list at all; I guess symbols from data aren't directly transferred?

I noticed in the devtools when I pressed "refresh" after mutating the items that I could see the new name, so I assumed something about the way I was setting the property didn't trigger the update, but even Vue.set did not help.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions