Skip to content

Prevent possible circular reference in preview mode in addDebugValues #295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 18, 2021

Conversation

nova-os
Copy link
Contributor

@nova-os nova-os commented Jan 18, 2021

Prevent "TypeError: Converting circular structure to JSON" similar to https://github.com/matomo-org/tag-manager/pull/186fpr html elements in the data layer.

React.js does set circular references to the dom elements, which lead JSON.stringify to fail them:

Bildschirmfoto 2021-01-18 um 08 29 40

@tsteur
Copy link
Member

tsteur commented Jan 18, 2021

Thanks @nova-os very much appreciated

@tsteur tsteur merged commit d8136dd into matomo-org:4.x-dev Jan 18, 2021
@tsteur tsteur added the Bug Something isn't working label Jan 18, 2021
@tsteur tsteur added this to the Current sprint milestone Jan 18, 2021
@innocraft-automation innocraft-automation removed this from the Current sprint milestone Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants