Does $state.snapshot
create a deep clone?
#16186
-
With some quick testing it does seem to do so but I'm confused at this quote from the docs:
If it already does deep clone the object, then why would you want to pass a snapshot to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
As seen in #12413, |
Beta Was this translation helpful? Give feedback.
As seen in #12413,
$state.snapshot()
was moved early on to usestructuredClone()
.