-
Notifications
You must be signed in to change notification settings - Fork 26.3k
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
Suggestion: extract apollo helpers like withData
into a separate repo
#2782
Comments
@ads1018 cc |
yeah, I've seen that |
@thealjey I meant I want Adam to check it out 👍 😄 |
@thealjey I'd also like to see a next-apollo package. I've been meaning to release one, but haven't gotten around to it. @sbking had a work in progress a while back but it was never completed. https://github.com/sbking/next-apollo One thing to think about is how configurable we'd want to make it. We had a discussion around defaults here sbking/next-apollo#1 |
@ads1018 it seemed so unmaintained I didn't even consider using it |
I think updating
if (context.res && context.res.finished) {
// When redirecting, the response is finished.
// No point in continuing to render
return
} I don't fully understand the last two but I combined all of them together and it works. |
@kolpav I think you may have answered your own question as to why it's worthwhile making it a package! Came here to +1 this. It should be a package. |
Hey folks - I finally got around to abstracting the Apollo Next integration into a separate package! You can check it out here: https://www.npmjs.com/package/next-apollo Let me know what think and send me your feedback. Note: Apollo Client 2.0 was released yesterday and it's not yet compatible with that version. Working on that next. |
Update: the package now supports Apollo Client 2.0 |
I wish
withData
was a separate npm package, so that it would be easier to track updates to it.The text was updated successfully, but these errors were encountered: