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

Can this somehow be used with react-rails #8

Closed
shaimo opened this issue Dec 21, 2015 · 3 comments
Closed

Can this somehow be used with react-rails #8

shaimo opened this issue Dec 21, 2015 · 3 comments
Labels

Comments

@shaimo
Copy link

shaimo commented Dec 21, 2015

I have an isomorphic application using react-router and react-rails and it works fine (both server and client). Now I'm starting to use Relay and obviously I cannot render it on the server (it uses timeout, etc). I don't use anywhere preparedata or match so not sure how to apply this or isomorphic-relay-router...
Thanks

@denvned
Copy link
Owner

denvned commented Dec 21, 2015

Does Relay works fine for you on the client? Do plan to use react-router-relay? - It is a bit tricky to use Relay with bare react-router.

@shaimo
Copy link
Author

shaimo commented Dec 21, 2015

@denvned yes, I managed to get it to work on the client (and even with react-rails), and yes - using react-router-relay. But it doesn't work when trying to render on the server (prerender option of react-rails). It sounds like isomorphic-relay or isomorphic-relay-router could help but I guess I will first need to get rid of react-rails and somehow do the rendering myself, which I'm trying to avoid...

@denvned
Copy link
Owner

denvned commented Dec 23, 2015

I never used react-rails, so unfortunately I can't help you with this.

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

No branches or pull requests

2 participants