Closed ash-hashtag closed 2 months ago
You can use vanX.noreactive
to wrap around objects that you don't want to convert into Proxy. I fixed the jsfiddle code you pasted with vanX.noreactive
: https://jsfiddle.net/1srb5L6d/5/.
Let me know if it works for you :-)
Thank you, this is what I'm looking for, somehow I missed it.
Reproduction
jsfiddle of the exact thing above https://jsfiddle.net/xnrfgoe8/
the moment body is accessed, it throws exceptions.
Is it possible to not create the entire object with Proxy? like if we know object.body is not gonna change and the only use case is just inserting or deleting objects and represent them in ui, there is no reason for the children of the object to be reactive.
it may also be related to https://github.com/vanjs-org/van/issues/277#issue-2167462332