-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Q: Can I use react-relay isomorphically? #390
Comments
Probably, though I have not yet tried it. I think the only thing that currently depends on the browser is the default network layer, but you can easily swap it when you're on the server: https://facebook.github.io/relay/docs/guides-network-layer.html#content Though you should probably just check these issues: |
@Gregoor thank you for quick answer, I will try, and share my result in success case. |
This comment shows how it can be fixed, but only on local level. So this can not be solid solution. |
Thanks for your interest! #136 covers the remaining issues to make this happen. Internally, we already server render some Relay pages, so this can definitely be done 😄 |
@mikhail-riabokon There's more discussion about server rendering with Relay in #136 |
I found this answer, but then I'm trying use react-relay on the server I got an error
self is not defined
, this error occurs becausefetch
library, which used in relay, is not isomorphic.The text was updated successfully, but these errors were encountered: