Skip to content

How to use ClientOnly with remix v2 #296

Answered by sergiodxa
chris-m92 asked this question in Q&A
Discussion options

You must be logged in to vote

You need to wrap the component in ClientOnly, because as I mentioned on the server the export will be undefined and you can't render undefined, so you wrap MapEngine in ClientOnly to prevent trying to render it.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@chris-m92
Comment options

Comment options

You must be logged in to vote
5 replies
@chris-m92
Comment options

@sergiodxa
Comment options

@chris-m92
Comment options

@sergiodxa
Comment options

Answer selected by chris-m92
@chris-m92
Comment options

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