Skip to content

WPGraphiQL Warning: Each child in a list should have a unique "key" prop. #2352

@justlevine

Description

@justlevine

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.

  1. Install WPGraphQL
  2. 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 WPGraphQL you'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

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort: lowAround a day or lessgraphiql ideIssues or pull requests related to the GraphiQL IDEimpact: lowFixes a minor issue for some people, slight DX improvementlang: javascriptPull requests that update JavaScript codetype: bugIssue that causes incorrect or unexpected behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions