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

Duplicate component keys #56

Open
johannbuscail opened this issue Jun 7, 2021 · 1 comment
Open

Duplicate component keys #56

johannbuscail opened this issue Jun 7, 2021 · 1 comment

Comments

@johannbuscail
Copy link

While scrolling in the box, I have this error of duplicate keys:

Warning: Encountered two children with the same key, `3o7aD0Xi3CU1GWNgM8`. 
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.

Here is my code:

<ReactGiphySearchbox
	apiKey="_API_KEY_"
	library="gifs"
	onSelect={(item: any) => console.log(item)}
/>

It's the most basic code.

@2kuniverse
Copy link

I'm getting the duplicate keys issue as well - and the objects are being stored in memory as the JS GC doesn't know it needs to clean them up, so it's also causing a large memory leak.

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

No branches or pull requests

1 participant