-
Notifications
You must be signed in to change notification settings - Fork 468
WPGraphiQL Warning: Each child in a list should have a unique "key" prop. #2352
Copy link
Copy link
Closed
Labels
effort: lowAround a day or lessAround a day or lessgraphiql ideIssues or pull requests related to the GraphiQL IDEIssues or pull requests related to the GraphiQL IDEimpact: lowFixes a minor issue for some people, slight DX improvementFixes a minor issue for some people, slight DX improvementlang: javascriptPull requests that update JavaScript codePull requests that update JavaScript codetype: bugIssue that causes incorrect or unexpected behaviorIssue that causes incorrect or unexpected behavior
Description
Issue
WPGraphiQL throws the following console logs: Warning: Each child in a list should have a unique "key" prop..
See: https://wp-graphql.slack.com/archives/C3NM1M291/p1649359486552519
The first two are from the <Button /> in AddOperations.js and the <AuthSwitch /> in graphiql-auth-switch.js, but there is another one I can't figure out.
To reproduce.
- Install WPGraphQL
- Open the developer console.
Tested on:
- Wordpress: 5.9.3
- WPGraphQ: 1.8.0 (both from wpackagist and this repo).
- Ubuntu 20.04 (wsl2 + devilbox + php 8.0.15)
- Chrome: 100.0.4896.127
When reporting a bug, please be sure to include the following:
- A descriptive title
- An isolated way to reproduce the behavior (example: GitHub repository with code isolated to the issue that anyone can clone to observe the problem)
- What version of
WPGraphQLyou're using, and the platform(s) you're running it on - What other plugins you're using
- The behavior you expect to see, and the actual behavior
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
effort: lowAround a day or lessAround a day or lessgraphiql ideIssues or pull requests related to the GraphiQL IDEIssues or pull requests related to the GraphiQL IDEimpact: lowFixes a minor issue for some people, slight DX improvementFixes a minor issue for some people, slight DX improvementlang: javascriptPull requests that update JavaScript codePull requests that update JavaScript codetype: bugIssue that causes incorrect or unexpected behaviorIssue that causes incorrect or unexpected behavior