@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.
@apollo/clientsupports@deferdirective 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
parseAndCheckHttpResponsefrom@apollo/client, I think it can be easily fixed by doing it conditionally like in createHttpLink.ts -@apollo/clientexportsreadMultipartBodyfunction which it uses for multipart/mixed responses.