Skip to content

Example with Object in store #440

Apr 12, 2021 · 2 comments · 7 replies
Discussion options

You must be logged in to vote

What do you mean by it being a proxy instead of the value? Do you have a repro on codepen, jsfiddle or similar I can check?

I think I understand what you mean. The object being a proxy of the original object is expected, it's part of how Vue's reactive works. You should be able to use toRaw():

import {toRaw} from 'vue'
console.log(toRaw(store.data))

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@posva

This comment has been hidden.

@leyenda
Comment options

@posva
Comment options

@leyenda
Comment options

@posva
Comment options

Answer selected by posva
Comment options

You must be logged in to vote
2 replies
@angelhdzmultimedia
Comment options

@eric-2d
Comment options

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