Skip to content

Support for @defer directive? #334

@petrgazarov

Description

@petrgazarov

@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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions