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
{{ message }}
This repository was archived by the owner on Sep 1, 2024. It is now read-only.
In cases when react creates jsx that references itself and that jsx is passed as a prop, an exception is thrown when that prop fails validation. The exception is because type checkers are trying to perform JSON.stringify on the prop value but it contains the circular structured jsx
React's circular structure is expected as mentioned by Dan here: facebook/react#24360 and it is up to prop-types to handle it.
Complete error:
Warning: Failed prop type: Converting circular structure to JSON
--> starting at object with constructor 'HTMLDivElement'
| property '__reactFiber$dhuo6horm3g' -> object with constructor 'FiberNode'
--- property 'stateNode' closes the circle
What is expected?
The validators when JSON.stringifying should ignore the react fields as they are not helpful to be included in the error message anyways.