vue3 ref, address element if objectarray in ref #10591
-
I keep my table data in an array of objects in a ref variable. everything works fine until I want to send a put with only one object/table row as data. If I address it with tdata.value[i] I get a Proxy object. Using toRaw on this gets me the data I want. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The proxy is the reactive version of the original object. Usually, you can use the proxy for anything you would use the original object for. That's what proxies are for. Is there a specific reason why you would need the non-original version of the data? |
Beta Was this translation helpful? Give feedback.
The proxy is the reactive version of the original object. Usually, you can use the proxy for anything you would use the original object for. That's what proxies are for.
Is there a specific reason why you would need the non-original version of the data?