Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

always do a second render for SSR compatible #22

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

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

Successfully merging this pull request may close these issues.

1 participant