Skip to content

Fixing error only in production #383

Closed Answered by jamesrweb
hanhanxue asked this question in Q&A
Discussion options

You must be logged in to vote

The original version should be fine, assuming hero container is always rendered and never unmounted. Did you check the server rendered DOM, the DOM changes via updates to state / props that happen and also that the id is truly always set because the sketch only runs on the client and so if the id is there, it would be found consistently.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jamesrweb
Comment options

@hanhanxue
Comment options

@hanhanxue
Comment options

@jamesrweb
Comment options

Answer selected by hanhanxue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants