self referencing flow type causing infinite loop
See original GitHub issueWhile using react-styleguidist
, I noticed that I was getting this warning:
Warning: Cannot parse src/components/Button/Button.js: RangeError: Maximum call stack size exceeded
It usually means that react-docgen does not understand your source code, try to file an issue here:
https://github.com/reactjs/react-docgen/issues
While trying to debug this problem. I was having issues determining where the issue came from. I am using Flow to type my components out and Flow wasn’t reporting an error. However, I learned that the issue was coming from the fact that I had a type that defined a method that had a parameter that was the parent typing. While this works fine in Flow, it appears to cause issues when running through react-docgen
.
Here is a slimmed down representation of the problem: Try Flow
Note: You may need to swap the engine to v0.64.0
or master
as v0.65.0
is currently broken
Issue Analytics
- State:
- Created 6 years ago
- Comments:6
Top Results From Across the Web
"Too many child contexts nested" errors or Dataweave files ...
CAUSE. It is not a recommended practice to use self-referencing loops because of two reasons: - Dataweave files only get deleted after a...
Read more >Entity framework self referencing loop detected - Stack Overflow
When I call my API via /api/Employee, I get this error: The 'ObjectContent`1' type failed to serialize the response body for content type...
Read more >Infinite Loop in Flow - Power Platform Community - Microsoft
The problem that I have been facing is that as the flow has "Update Item" function at the end of the flow. it...
Read more >Fixing JSON Self Referencing Loop Exceptions
Here's the real solution to fixing JSON self-referencing loop ... have two models that reference each other and will cause an infinite loop...
Read more >SELF-REFERENCE IN FINITE AND INFINITE PARADOXES
ing where the self-reference arises. Sorensen shows that with every finite liar paradox there corresponds an infinite Yablo-type paradox, in which self-.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for reporting this. I was easily able to reproduce and fixed the issue in #251 and #252.
Will release a new version soon.
Please create a new issue.