Skip to content

always do a second render for SSR compatible #22

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
May 1, 2019
Merged

always do a second render for SSR compatible #22

merged 1 commit into from
May 1, 2019

Conversation

nihgwu
Copy link
Contributor

@nihgwu nihgwu commented May 1, 2019

The problem: If we set scrollbarSize = 0 in SSR and use the real size like scrollbarSize = 15 in client hydration, the layout won't be updated, see facebook/react#8017 facebook/react#10591 facebook/react#11128

So we have to keep the value identical both in SSR and client hydration, and then update the value manually in cDM. I know it's not so good for pure client side use case, but I just can't find a way to distinguish it's in hydration or a normal rendering

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant