Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mutation on nested properties #2218

Open
FrancoisDucobu opened this issue Apr 18, 2023 · 0 comments
Open

Mutation on nested properties #2218

FrancoisDucobu opened this issue Apr 18, 2023 · 0 comments

Comments

@FrancoisDucobu
Copy link

FrancoisDucobu commented Apr 18, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant