Skip to content

Prop did not match. Client: X, Server: Y #14469

Answered by mattcarlotta
nandorojo asked this question in Help
Discussion options

You must be logged in to vote

As mentioned above, the server doesn't have a window (it's undefined); therefore, the hook will always fall back to 0. As such, the only time the style prop will match is if the device window is initially less than 500px.

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@victorbiasibetti
Comment options

@lukeocodes
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@nandorojo
Comment options

@nandorojo
Comment options

@mattcarlotta
Comment options

@nandorojo
Comment options

@redbar0n
Comment options

Answer selected by nandorojo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
6 participants
Converted from issue

This discussion was converted from issue #14469 on June 23, 2020 08:52.