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'm working with a legacy component (that is itself a legacy D3 chart shoved into a React component and hacked together using refs). I'm unable to use component-image on it because the initial element is added to the DOM in the first run of render, but is not actually populated with a graph until componentDidMount runs. Therefore, I'm getting a blank screenshot.
Before I just bite the bullet and rewrite this crap (referring to my component), is there any way to set a small delay?
The text was updated successfully, but these errors were encountered:
A delay won’t help unfortunately because component-image is using renderToStaticMarkup to render the component. It’s server rendered so componentDidMount won’t actually fire at all.
I’m interested in trying to implement something to make this work but don’t know when that would be, and I’m quite busy at the moment unfortunately.
I'm working with a legacy component (that is itself a legacy D3 chart shoved into a React component and hacked together using refs). I'm unable to use component-image on it because the initial element is added to the DOM in the first run of render, but is not actually populated with a graph until
componentDidMount
runs. Therefore, I'm getting a blank screenshot.Before I just bite the bullet and rewrite this crap (referring to my component), is there any way to set a small delay?
The text was updated successfully, but these errors were encountered: