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

Console is being cleared and hiding warnings #723

Closed
BruceHubbard opened this issue Dec 4, 2017 · 0 comments
Closed

Console is being cleared and hiding warnings #723

BruceHubbard opened this issue Dec 4, 2017 · 0 comments

Comments

@BruceHubbard
Copy link

BruceHubbard commented Dec 4, 2017

Styleguidist Version: 6.0.33

I recently upgraded my react-styleguidist version and now the React warnings I used to see are gone (I'm using Chrome) and all I see is a row saying the console has been cleared and it points to this line:

https://github.com/xjlim/react-styleguidist/blob/7f2863b47a875b2a699d51cb8ef0d190faeb31e8/src/rsg-components/Preview/Preview.js#L52

Anyone else having this problem?

Without being too familiar with how the code works it seems that by having a console.clear() in the componentDidMount would clear the console on every example and you would probably only get warnings for the very last example on your page.

sapegin added a commit that referenced this issue Dec 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant