Skip to content

Using server-side-rendering results in document is not defined #12

@Nehle

Description

@Nehle

Since componentWillMount will run both on the server and the client, document may not be available when it is running, resulting in a runtime error.

Suggest moving the canvas creation to componentDidMount which only runs on the client

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions