Skip to content

No warning/error is given when setting state of a non-existent state property name #1120

@SergioCrisostomo

Description

@SergioCrisostomo

Version

3.0.1

Reproduction link

https://jsfiddle.net/Sergio_fiddle/m99jmqsa/

Steps to reproduce

Open the jsFiddle

What is expected?

Two possible cases:

a) Vuex would create a property in state and the getter would be loaded with the data

b) a warning/error would be thrown stating "you are setting data to a non-existent property"

What is actually happening?

Vuex silently fails

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions