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

Hangs forever on chained functions #136

Closed
garamond opened this issue Nov 10, 2016 · 2 comments
Closed

Hangs forever on chained functions #136

garamond opened this issue Nov 10, 2016 · 2 comments

Comments

@garamond
Copy link

Input file MyComp.js:

export class MyComp extends Component { render(){} }

export function myFun(foo) {
  return foo.bar().baz()
}

Running react-docgen MyComp.js hangs forever and causes CPU load to spike to 100%.

Without chained functions the issue does not appear: After changing to body of myFun to

export function myFun(foo) {
  return foo.bar.baz()
}

the file is processed without issues.

@fkling
Copy link
Member

fkling commented Nov 10, 2016

Thanks! This will be resolved with #134 .

tchon added a commit to tchon/react-docgen that referenced this issue Nov 29, 2016
  * Add `isValidCalleeType()` check for CallExpresion
    and ArrayExpression and Literal
  * Fixes reactjs#136
@tchon
Copy link
Contributor

tchon commented Nov 29, 2016

@fkling It looks like #134 will not address the hanging on chained methods. See improved PR here: #139

fkling pushed a commit that referenced this issue Dec 21, 2016
  * Add `isValidCalleeType()` check for CallExpresion
    and ArrayExpression and Literal
  * Fixes #136
toptaldev92 pushed a commit to toptaldev92/react-docgen that referenced this issue Jul 28, 2021
  * Add `isValidCalleeType()` check for CallExpresion
    and ArrayExpression and Literal
  * Fixes reactjs/react-docgen#136
toptaldev92 pushed a commit to toptaldev92/react-docgen that referenced this issue Jul 28, 2021
  * Add `isValidCalleeType()` check for CallExpresion
    and ArrayExpression and Literal
  * Fixes reactjs/react-docgen#136
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2022
bright0824 added a commit to bright0824/react-docgen that referenced this issue Jul 14, 2023
  * Add `isValidCalleeType()` check for CallExpresion
    and ArrayExpression and Literal
  * Fixes reactjs/react-docgen#136
bright0824 added a commit to bright0824/react-docgen that referenced this issue Jul 14, 2023
  * Add `isValidCalleeType()` check for CallExpresion
    and ArrayExpression and Literal
  * Fixes reactjs/react-docgen#136
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants