-
Notifications
You must be signed in to change notification settings - Fork 427
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
Relay modern with routing example #31
Comments
See https://github.com/taion/relay-todomvc, specifically https://github.com/taion/relay-todomvc/tree/found-modern (Relay Modern) and https://github.com/taion/relay-todomvc/tree/found-modern-universal (Relay Modern + SSR). |
thanks for the example, I'm searching a route library too. |
I think @taion was pointing at 'Found' as the route library. Also, I am using relay modern with react router 4 without issue. Granted the app I'm using it on isn't huge so there may be some hurdles with a large app. |
That's correct. Use Found. RRv4 doesn't give you a good way to handle nested queries. |
Could you elaborate on that, what is the issue you are thinking of? |
If you need to nest routes that require Relay data, with RRv4, you're stuck nesting |
Ah, I see. Yeah, my routes just end up looking like this: <Route
path={"/nested/:thingId/thing"}
component={props => <Thing data={data} {...props} />}
/> And that is how I orchestrate my fragment containers. |
Is there an example app that uses Relay Modern with some sort of routing in between pages? If not, is there another repo where I can find something similar?
The text was updated successfully, but these errors were encountered: