Skip to content

Commit

Permalink
Added fix for decycle function
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRappl committed Nov 8, 2024
1 parent 5749142 commit 59c26b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 2 additions & 0 deletions src/utilities/piral-debug-utils/src/decycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export function decycle(obj: Record<string, any>) {
return `<error>`;
} else if (_value instanceof Node) {
return `<node>`;
} else if (_value['$$typeof'] === Symbol.for('react.element')) {
return '<react.element>';
} else if (typeof _value === 'object') {
for (let i = 0; i < objects.length; i++) {
if (objects[i] === _value) {
Expand Down

0 comments on commit 59c26b1

Please sign in to comment.