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

remove obsolete displayName query option #10044

Merged
merged 1 commit into from
Sep 15, 2022

Conversation

henryqdineen
Copy link
Contributor

When reading the docs I was confused by the displayName option for the useQuery() query hook

The name of your component to be displayed in the React Developer Tools.

Since useQuery is a hook there is no component to set a display name to. I figured this was something that was carried over from react-apollo or was still used by Apollo Dev Tools or the legacy HOCs or components but from looking at the code it appears unused in those places.

Let me know if I'm incorrect about any of this. Thanks!

Copy link
Contributor

@jpvajda jpvajda left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! I'm not 100% sure this change is something we want to do, looking at the docs for the use query API we seem to be saying this is an actual option available. Though I know this shared component is used in several sections of our docs so I'm going to check what is the actual functionality for UseQuery as you've also made some changes to the core API code.

cc @benjamn @hwillson @alessbell

@jpvajda jpvajda added 🏓 awaiting-team-response requires input from the apollo team 🔍 investigate Investigate further labels Sep 1, 2022
@jpvajda jpvajda removed their assignment Sep 6, 2022
Copy link
Member

@benjamn benjamn left a comment

Choose a reason for hiding this comment

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

Thanks @henryqdineen!

@benjamn benjamn merged commit 76ab32e into apollographql:main Sep 15, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🏓 awaiting-team-response requires input from the apollo team 📝 documentation 🔍 investigate Investigate further
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants