vuex icon indicating copy to clipboard operation
vuex copied to clipboard

Mutation on nested properties

Open FrancoisDucobu opened this issue 1 year ago • 0 comments

Hello Guys,

I've got a "strange behavior" on nested properties.

I receive from my api a nested object.

dossier: {
    property1: xxx,
    property2: xxx,
    property3: {
        nested1: xxx,
        nested2: xxx
    }
}

On my view component, I have a mapGetter on this object dossier.

If I do a :value on an input by passing dossier.property3.nested1

The value of nested1 is updated on the store without any mutation.

Is the getter returning a pointer on the nested properties ? Is it normal ?

Thanks for your help

Francois

FrancoisDucobu avatar Apr 18 '23 17:04 FrancoisDucobu