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

React duplicate key warning in QueryHistory component since 0.16.0 #988

Closed
MichaelBurgess opened this issue Oct 28, 2019 · 7 comments · Fixed by #1035
Closed

React duplicate key warning in QueryHistory component since 0.16.0 #988

MichaelBurgess opened this issue Oct 28, 2019 · 7 comments · Fixed by #1035

Comments

@MichaelBurgess
Copy link

MichaelBurgess commented Oct 28, 2019

Since upgrading to 0.16.0 I'm getting duplicate key warnings from the QueryHistory component. I have a few of the same items in the history - this looks to be the issue here:

0.chunk.js:319590 Warning: Encountered two children with the same key, `mutation SomeMutation($input: SomeMutationInput!) {
  someMutation(input: $input) {
    result
  }
}`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
    in ul (created by QueryHistory)
    in section (created by QueryHistory)
    in QueryHistory (created by GraphiQL)
    in div (created by GraphiQL)
    in div (created by GraphiQL)
@MichaelBurgess MichaelBurgess changed the title React duplicate key warning in queryHistory since 0.16.0 React duplicate key warning in QueryHistory component since 0.16.0 Oct 28, 2019
@MickaelNeves
Copy link

Getting the same problem

console

@acao
Copy link
Member

acao commented Oct 31, 2019 via email

@moroshko
Copy link

@acao Any luck?

@acao
Copy link
Member

acao commented Dec 1, 2019

@moroshko ah dangit my bad, forgot to bring this into the 0.17.0 release. this is a bad bug, and we need to fix it immediately! I will get on a 0.17.1 bugfix release today, much smaller effort.

@acao
Copy link
Member

acao commented Dec 1, 2019

@moroshko able to give this a try to confirm? looks like this fixes the bug:
Screen Shot 2019-12-01 at 1 02 36 PM

@moroshko
Copy link

moroshko commented Dec 2, 2019

@acao Thanks for fixing this, let's release the fix!

@acao
Copy link
Member

acao commented Dec 2, 2019

@moroshko we have a few more PRs waiting for the next release, one in particular that fixes our minified build. our latest published one is provisional from that PR. our minified builds are the most widely used. so hopefully later this week!

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