Closed alokreddyk closed 1 year ago
could we merge this in? will be helpful to have this fix for SSR apps
could we merge this in? will be helpful to have this fix for SSR apps
@stutrek
sorry, just saw this. Will make a release now.
This wasn't the issue. There was a check right above this one. The problem is where it assigns window.scrollMonitor
, which it does for legacy reasons.
I published a new version that should fix #99
On SSR apps specially, those which do not use webpack,
window is undefined, REFERENCE ERROR would be thrown
to avoid reference errors in SSR apps this check will be helpful
Closes #99