Skip to content

Content doesn't scroll + bars aren't visible during SSR #87

Open
@tim-soft

Description

@tim-soft

Hey, awesome library!

I've been playing around with this component in NextJS and have noticed these scrollbars disable all scrolling/do not display in the initial server side rendered HTML

Here's a basic sandbox with NextJS, and a prod version deployed to Now
https://codesandbox.io/s/with-styled-components-h29mz
https://csb-h29mz-3ql9wvoej.now.sh/

You can see how the scroll bars "pop in" after the bundle loads vs no scrolling/scrollbars in the initial html, disabling javascript + refreshing the prod demo should show the initial server html

I'm not sure if this is intentional behavior, ideally scrolling would be possible from the getgo

The side-effect in not having scrolling immediately can be perceived as input lag
Capture

dependencies

"next": "latest",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-scrollbars-custom": "4.0.5"

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestnot bugThis is not a bug or enhancement request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions