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

Docs: Address common pitfall in data source setup #5086

Closed
wants to merge 1 commit into from

Conversation

viernullvier
Copy link

The documentation for data sources doesn't currently mention that it's absolutely necessary to return fresh data source instances in the function passed to dataSources. After running into this issue on my own, I've found more users experiencing the same problem - see: #4486, #3935, #1765, #1562, #1511 and possibly some more.

This PR will add a hint to the data sources documentation that will hopefully prevent future users from running into the same issue again.

@apollo-cla
Copy link

@viernullvier: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

@StephenBarlow
Copy link
Contributor

Thanks for the PR @viernullvier! I just pushed a major content edit to this article, and I made sure to include a bolded callout to this effect in this section

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

Successfully merging this pull request may close these issues.

3 participants