question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning: Each child in an array or iterator should have a unique "key" prop.

See original GitHub issue

When I send data as props I have error for iterator key. image

Warning: Each child in an array or iterator should have a unique “key” prop.

Check the render method of Body. See https://fb.me/react-warning-keys for more information. in Row (created by Body) in Body (created by BootstrapTable) in table (created by BootstrapTable) in div (created by BootstrapTable) in BootstrapTable (created by PaginationWrapper) in PaginationWrapper (created by SortWrapper) in SortWrapper (created by BootstrapTableContainer) in BootstrapTableContainer (at RemotePagination.js:66) in RemotePagination (created by Connect(RemotePagination)) in Connect(RemotePagination) (at Merchants.js:178) in div (at Merchants.js:166) in section (created by styled.section) in styled.section (at Merchants.js:165) in div (at Merchants.js:164) in div (at Merchants.js:163) in Merchants (created by Connect(Merchants)) in Connect(Merchants) (created by Route) in Route (at DashboardLayout.js:39) in Switch (at DashboardLayout.js:37) in main (at DashboardLayout.js:35) in div (at DashboardLayout.js:33) in div (at DashboardLayout.js:32) in section (created by styled.section) in styled.section (at DashboardLayout.js:30) in AuthorizedLayout (at requireAuth.js:27) in Authenticate (created by Connect(Authenticate)) in Connect(Authenticate) (created by Route) in Route (at routes.js:34) in Switch (at routes.js:20) in div (at routes.js:17) in Router (created by BrowserRouter) in BrowserRouter (at routes.js:16) in Routes (created by Connect(Routes)) in Connect(Routes) (at index.js:42) in Provider (at index.js:41)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:18 (2 by maintainers)

github_iconTop GitHub Comments

16reactions
nononocatcommented, Dec 28, 2018

it seems like <BootstrapTable /> use keyField as the unique key prop. if the value of the “keyFiled” is not unique in your code, you will see that error message…

7reactions
siamakcommented, Feb 20, 2018

It’s a bug in my code. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Each child in an array or iterator should have a unique "key ...
Each child in a list should have a unique "key" prop. ... of this warning is "unique", sectionID + rowID return a unique...
Read more >
Warning: Each Child in a List Should Have a Unique 'key' Prop
When creating a list in the UI from an array with JSX, you should add a key prop to each child and to...
Read more >
How to Fix 'Each child should have a unique key prop' - Webtips
The "Each child in a list should have a unique "key" prop." warning happens in React when you create a list of elements...
Read more >
Each child in a list should have a unique "key" prop in react js ...
How to solve Warning : Each child in a list should have a unique " key " prop in react js is shown....
Read more >
Why do I need Keys in React Lists? | by Adhithi Ravichandran
You could have a list of tasks like a calendar app, list of pictures like… ... “Warning: Each child in an array or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found