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
I found that if you try to create prop-types using flowtype definitions and accidentally reference yourself within it you enter into a infinite loop and run out of memory
e.g.
typeProps={someProp: string,anotherProp: Props,};
You get:
Maximum call stack size exceeded
RangeError: Maximum call stack size exceeded
at buildTypeAnnotationDeclarationTypes (/node_modules/eslint-plugin-react/lib/rules/prop-types.js:403:35)
Obviously the application code itself is broken, but I think this should fail gracefully.
If this is a problem I should be reporting directly to eslint, please let me know
The text was updated successfully, but these errors were encountered:
Obviously the application code itself is broken, but I think this should fail gracefully
There is a valid need for recursive types even in prop-types, it is not always result of a mistake. We have a lot in our app, so we had to temporary remove react/prop-types rule.
I found that if you try to create prop-types using flowtype definitions and accidentally reference yourself within it you enter into a infinite loop and run out of memory
e.g.
You get:
Obviously the application code itself is broken, but I think this should fail gracefully.
If this is a problem I should be reporting directly to eslint, please let me know
The text was updated successfully, but these errors were encountered: