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

Support for @defer directive? #334

Open
petrgazarov opened this issue Nov 23, 2023 · 0 comments
Open

Support for @defer directive? #334

petrgazarov opened this issue Nov 23, 2023 · 0 comments

Comments

@petrgazarov
Copy link

@apollo/client supports @defer directive since version 3.7.0:

https://www.apollographql.com/docs/react/data/defer/

But I'm not able to use this library with @defer. It throws a JSON parsing error on this line. Are there plans to support it?

Since this library already calls parseAndCheckHttpResponse from @apollo/client, I think it can be easily fixed by doing it conditionally like in createHttpLink.ts - @apollo/client exports readMultipartBody function which it uses for multipart/mixed responses.

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

No branches or pull requests

2 participants