Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Add key to every iterator element #260

Open
mtfranchetto opened this issue Aug 18, 2022 · 0 comments
Open

Add key to every iterator element #260

mtfranchetto opened this issue Aug 18, 2022 · 0 comments
Labels
tech-debt Legacy issues or new tools adoption

Comments

@mtfranchetto
Copy link
Contributor

Description

The React team advise to use the key property for every element rendered in a list, to avoid useless re-renders (see guide here).

From a quick analysis in the codebase, we have to fix:

./src/old-pages/Clusters/Accounting.tsx
188:75  Error: Missing "key" prop for element in iterator  react/jsx-key
199:41  Error: Missing "key" prop for element in iterator  react/jsx-key

./src/old-pages/Configure/MultiUser.tsx
134:65  Error: Missing "key" prop for element in iterator  react/jsx-key

@mtfranchetto mtfranchetto added the tech-debt Legacy issues or new tools adoption label Aug 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tech-debt Legacy issues or new tools adoption
Projects
None yet
Development

No branches or pull requests

1 participant