Restoring proxy to a previous state #834
Unanswered
alexander-entin
asked this question in
Q&A
Replies: 1 comment
-
You need to deep clone.
It's by design. We want to support circular object structure and it's kind of a side effect. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While debugging proxy state restoration I stumbled upon somewhat strange behavior.
result
2result
11 11 11My use case - snapshot restoration - worked as expected in a snippet, by does nothing in a real app as the value in question is present in
proxyCache
for some reason. I'm about todeepClone
a snapshot before trying to restore it to disable the cache.And my questions:
What is a recommended way to restore a proxy to the initial value or an intermediate snapshot?
Is the behavior demonstrated by the above snippets by design or a bug?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions