Skip to content
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

JSON changes with each run - React 17 and ReactDOM.createPortal() #178

Open
captain-igloo opened this issue Feb 24, 2021 · 0 comments
Open

Comments

@captain-igloo
Copy link

In React 17 with components that use ReactDOM.createPortal(), the JSON changes with each run. The component's props contain strings like "_reactListeninga2u1embg03f" and "__reactEvents$nxgockfgcdd" which change. React 16 is not affected.

Obviously these are coming from react-dom but can anything be done? My snapshot tests fail with React 17.

See https://github.com/captain-igloo/enzyme-to-json-bug .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant