Skip to content

localePath why need check (typeof window === 'undefined')?? #2124

Answered by adrai
synasapmob asked this question in Q&A
Discussion options

You must be logged in to vote

because on client side the path is different then on server side

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

@adrai
Comment options

Answer selected by synasapmob
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
Q&A
Labels
None yet
2 participants