-
Notifications
You must be signed in to change notification settings - Fork 21
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
Other potential API updates #7
Comments
I am still not sure how that will be possible, do you have any small code-snippet that show it? I like this, feels more integrated than the current API. |
It'd essentially be function createContainer(Component, config) {
return Relay.createContainer(injectSubscribe(Component), config);
} |
👍🏼 but that would still make us use subscriptions.subscribe, right? On Saturday, 20 August 2016, Jimmy Jia notifications@github.com wrote:
|
I would actually make that call up to |
Hmm I see.. if we inject our HOC inside the Relay HOC we can hijack the |
Yup exactly. It's one more HoC, but it saves having to make two separate wrapping HoC calls. |
Yeah, sounds like a plan |
2nd point in OP is handled in graphql-relay-subscription. |
Just some thoughts, to bring things more closely in line with facebook/relay#1298:
subscribe
as a method on a subclass ofRelayEnvironment
, and optionally implement [meta] Support real-time updates via event subscriptions facebook/relay#541 (comment) and addRelaySubscriptions.createContainer
to make it available onprops.relay
Delegatesubscribe
implementation to custom network layer rather than inject into<SubscriptionProvider>
The text was updated successfully, but these errors were encountered: