We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
structuredClone
1 parent 689bc46 commit 9aaacd2Copy full SHA for 9aaacd2
packages/base/src/widget.ts
@@ -584,7 +584,7 @@ export class WidgetModel extends Backbone.Model {
584
state[k] = serialize(state[k], this);
585
} else {
586
// the default serializer just deep-copies the object
587
- state[k] = deepcopy(state[k]);
+ state[k] = JSON.parse(JSON.stringify(state[k]));
588
}
589
590
if (state[k] && state[k].toJSON) {
0 commit comments