These are chat archives for canjs/canjs
unwrapnot being in the docs… I’m not sure if it’s intentionally undocumented or not.
I forgot at the Contributor's Meeting that I wanted to show the code for how the JSON is updated in the ViewModel Editor in Devtools.
It was interesting because changes come in from the ViewModel changing in the app and changes also happen when the user edits the JSON in the jsoneditor (third-party plugin) we're using. And both could be changing at the same time.
Whichever one changes, we have to find the patches for what changed and apply it to the other one. It was a good use-case for the
value resolver observable in DefineMap. Here's the code if you want to take a look: https://github.com/canjs/can-devtools-components/blob/6075bfe2282f80fdbb081384245e2a86b9125092/viewmodel-editor/viewmodel-editor.js#L65-L102