You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2017. It is now read-only.
I've been building on top of your app my own app for quite a while — and now I want to add imagesLoaded to it. The problem is that the code is executed two times, the first time on server — where there is no browser environment and window is obviously undefined — so imagesloaded throws an error during import like this "ReferenceError: window is not defined".
How can we an approach it in the isomorphic app? I see how css is included via webpack loader – could be there some way to do the same with browser-only JS?
The text was updated successfully, but these errors were encountered:
Hey!
I've been building on top of your app my own app for quite a while — and now I want to add imagesLoaded to it. The problem is that the code is executed two times, the first time on server — where there is no browser environment and window is obviously undefined — so imagesloaded throws an error during import like this "ReferenceError: window is not defined".
How can we an approach it in the isomorphic app? I see how css is included via webpack loader – could be there some way to do the same with browser-only JS?
The text was updated successfully, but these errors were encountered: