Skip to content

Commit

Permalink
Revert "fix: deepcopy with structuredClone over JSON.parse/stringify"
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou authored Sep 11, 2023
1 parent 689bc46 commit 9aaacd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/base/src/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ export class WidgetModel extends Backbone.Model {
state[k] = serialize(state[k], this);
} else {
// the default serializer just deep-copies the object
state[k] = deepcopy(state[k]);
state[k] = JSON.parse(JSON.stringify(state[k]));
}

if (state[k] && state[k].toJSON) {
Expand Down

0 comments on commit 9aaacd2

Please sign in to comment.