Closed cedricdelpoux closed 3 years ago
Hey, sorry about that. Do you have suggestions about how to check for SSR/functionally fix this?
Also, would the window event listener calls break?
I think it juste a one line check because there is only one window
during initialisation.
viewH = typeof window !== undefined ? window.innerHeight : 0;
I made a PR
And just to make sure, a default value of 0 wouldn't break any functionality/introduce weird bugs right?
It does not change anything for user who don't use SSR
Hi, the last version
2.2.13
is not compatible with server side renderingerror occurs when calling
window.innerHeight
.I need to downgrade to version
2.2.7
to makereact-scrollama
work with SSR