Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSR bypass #44

Open
oori opened this issue Sep 13, 2017 · 5 comments
Open

SSR bypass #44

oori opened this issue Sep 13, 2017 · 5 comments

Comments

@oori
Copy link

oori commented Sep 13, 2017

It breaks SSR, as no window is defined. There are various workarounds, but it's nicer handled in the library itself by checking for window.

I thought it's only this line, but your build adds bindings to window .call(window).

Thanks!

@dunnock
Copy link
Owner

dunnock commented Sep 14, 2017 via email

@dunnock
Copy link
Owner

dunnock commented Oct 7, 2017

Hi @oori , did it help? If so can you please close this issue, if not please let me know.. Thanks

@oori
Copy link
Author

oori commented Oct 7, 2017

@dunnock Thanks for your message. No, it did not help, build still breaks. unfortunately I didn't have time to dig into this, and just bypassed the issue temporarily. I will have to resolve this sooner or later.. and will update with details here.

@leofle
Copy link

leofle commented Dec 20, 2017

some news in here?

@keplersj
Copy link

keplersj commented Feb 26, 2018

Using react-async-component with serverMode set to 'defer' works really well for this use case. Works well with Gatsby/Next.js setups as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants