Open pastelsky opened 8 years ago
react-infinite
does not use window internally. Assuming you are having this issue because you need to use window
to provide the scrollTop
and scrollLeft
properties, simply check for window
before using it and pass a value like 0
or whatever makes sense for your application.
It appears you do, when trying to set container height with useWindowAsScrollContainer
prop https://github.com/seatgeek/react-infinite/blob/master/src/react-infinite.jsx#L128
Also having this issue.
It's no longer throwing an error on server-side rendering, but it is setting height:NaN
when I attempt to render a page with useWindowAsScrollContainer
on the server side. The problem doesn't go away until I scroll up and down a bit.
When I try to use this library in an isomorphic app, i get
How do i proceed?