You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import toString from 'react-element-to-jsx-string';
const el = <Element
prop={{
component: <Component />,
}}
/>
toString(el)
Running the above seems throw the following error:
Uncaught RangeError: Maximum call stack size exceeded
at Array.sort (:80/native)
at sortObject (index.js?a730:225)
at eval (index.js?a730:227)
at Array.reduce (<anonymous>)
at sortObject (index.js?a730:225)
at eval (index.js?a730:227)
at Array.reduce (<anonymous>)
at sortObject (index.js?a730:225)
at eval (index.js?a730:227)
at Array.reduce (<anonymous>)
Hi there, just to emphaze a bit this issue, it happened to me too & its quite annoying. Would love to see this in the next release, happy to help test this is you need to.
@vvo I hadn't realised how the versioning worked for this repo, and so this PR didn't include an npm version bump. Are we able to retrospectively add one?
Running the above seems throw the following error:
Here's a demo: https://stackblitz.com/edit/react-element-to-jsx-string-error?file=index.js
The text was updated successfully, but these errors were encountered: