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

Rendering suggest items with matching substrings raises react unique "key" prop warning #515

Open
LucasBrandt opened this issue Aug 9, 2024 · 0 comments

Comments

@LucasBrandt
Copy link

Short description

When rendering suggest items with matching substrings, and not passing a value for the renderSuggestItem prop, React raises a warning that each child in a list should have a unique key.

I am using version 2.16.2.

Expected results

Suggest items are rendered without raising a react warning.

Actual results

React raises a warning.

Additional Information

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

Check the render method of `SuggestItem`. See https://reactjs.org/link/warning-keys for more information.
b
SuggestItem@webpack:////app/node_modules/@ubilabs/react-geosuggest/module/Geosuggest.esm.js?:305:28
ul
SuggestList@webpack:////app/node_modules/@ubilabs/react-geosuggest/module/Geosuggest.esm.js?:412:42
div
div
GeoSuggest@webpack:////app/node_modules/@ubilabs/react-geosuggest/module/Geosuggest.esm.js?:467:28
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