Skip to content

Set delay before taking screenshot? #11

@dylanjt

Description

@dylanjt

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions