stutrek / scrollmonitor

A simple and fast API to monitor elements as you scroll
MIT License
3.3k stars 244 forks source link

SSR not working after v 1.2.4 #99

Closed iPrytz closed 2 years ago

iPrytz commented 2 years ago

Since setting window.scrollMonitor = scrollMonitor; outside if(isInBrowser) it will break when trying to add the package in SSR-mode. Currently testing on Nuxt (Vue SSR).

Another thing which might just me the case in our project though.. When i add the watcher on a wrapper element, the pictures in view doesn't load until i scroll a little bit. Will see if i can create a separate issue with a working example later..