diff --git a/CHANGELOG.md b/CHANGELOG.md index b5e4ce247..7f65cf7d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,9 @@ # Piral Changelog -## 1.8.0 (tbd) +## 1.7.2 (tbd) - Fixed removal of `MutationEvent` in recent Chrome in `piral-blazor` (#724) by @dheid +- Fixed inclusion of React components in serialized dev tools message (#726) ## 1.7.1 (November 2, 2024) diff --git a/src/utilities/piral-debug-utils/src/decycle.ts b/src/utilities/piral-debug-utils/src/decycle.ts index aad11a8ac..24cab6972 100644 --- a/src/utilities/piral-debug-utils/src/decycle.ts +++ b/src/utilities/piral-debug-utils/src/decycle.ts @@ -13,6 +13,8 @@ export function decycle(obj: Record) { return ``; } else if (_value instanceof Node) { return ``; + } else if (_value['$$typeof'] === Symbol.for('react.element')) { + return ''; } else if (typeof _value === 'object') { for (let i = 0; i < objects.length; i++) { if (objects[i] === _value) {