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

Recursive reference between functions cause "maximum call stack size exceeded" #558

Closed
guy-kdm opened this issue Oct 22, 2016 · 7 comments
Closed
Labels

Comments

@guy-kdm
Copy link

guy-kdm commented Oct 22, 2016

tl;dr - I suppose it's the hot reloading, is there a way to turn it off?
If I include the following function:

function Hi() {
function Yo() {
return Hi()
}
return null
}

I get "maximum call stack size exceeded" on build.
Is there any way around it?

@hinterlist
Copy link

hinterlist commented Oct 23, 2016

Since the last update I've made today to version 2.25.0, start getting same error message for component which worked fine before.

Downgraded back to 2.20.0, and it works fine again.

@arunoda arunoda added the bug label Oct 23, 2016
@arunoda
Copy link
Member

arunoda commented Oct 23, 2016

It's a bug and on it.

@arunoda
Copy link
Member

arunoda commented Oct 23, 2016

@DimitryKislichenko could you send me a sample code as well.

arunoda added a commit that referenced this issue Oct 23, 2016
@arunoda
Copy link
Member

arunoda commented Oct 23, 2016

Guys, could you check the latest version of storybook where I did a fix.

@hinterlist
Copy link

Thanks @arunoda, I can confirm that version 2.25.1 works.

@guy-kdm
Copy link
Author

guy-kdm commented Oct 25, 2016

Joining the confirmation just to thank @arunoda for his lightning fast fix.

@arunoda
Copy link
Member

arunoda commented Oct 25, 2016

Awesome. So, I'm gonna close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants