-
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
Consider using different prop nams in RootContainer #785
Comments
This is good feedback @Kureev. Thanks. We are indeed moving away from the "route" terminology (see for example #456 and #503). If you look at In the interests of not creating unnecessary compatibility-breaking changes, I think we're unlikely to make any major changes to the Thanks once again for your input. |
Thanks for the nice feedback, @wincent! |
Summary: The code comments in `RelayRenderer` mention a `Container` prop, suggesting that this is what we were intending to use at some point during the design of the API, but as implemented the prop is actually `Component`. As evidenced in this GitHub issue, this may cause confusion and there's an opportunity for us to make things clearer by changing the name here: #785 This diff continues to support `Component`, but issues a warning in `__DEV__`. The code to handle the deprecation is ugly but fortunately can be short-lived. As `RelayRenderer` isn't publicly documented yet, we don't have to keep the code to support the deprecation around for long; I'm thinking after the next release we can rip it out, with plenty of time to update internal callers. Reviewed By: yungsters Differential Revision: D2901998 fb-gh-sync-id: dfc7a44babf1f6a43749691d3430e92884c94454
Hi there,
I'm pretty new to Relay, so correct me if I'm wrong, but it seems that
Relay.RootContainer
doesn't actually support vanillaComponents
, but aRelay.Containers
instead.Also,
route
is a pretty confusing name, does it make any sense to change it to something more suitable likequery
?So, the idea is to use change a public interface to something like this:
Does it makes any sense?
The text was updated successfully, but these errors were encountered: