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

[Runtime] deprecate the "builder" methods on ApolloCall and add them on the Builder instead #2434

Merged

Conversation

martinbonnin
Copy link
Contributor

See #2430

The ApolloCall.responseFetcher(), ApolloCall.cacheHeaders() methods and others are confusing because they are acting like "builder" methods and return a new instance of ApolloCall but they're actually not part of the Builder. It's very easy to miss the return value if not cautious.

Deprecate them and add them in the Builder where they belong.

Copy link
Contributor

@tasomaniac tasomaniac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes a lot of sense. 👍

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

Successfully merging this pull request may close these issues.

None yet

3 participants