popcodeorg / popcodeorg/popcode
React key warning in development mode
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 191
- Fork
- 143
- Merge medio
- 4g 11h
- PR unite (30g)
- 5
Descrizione
When developing, if you open a fresh Popcode environment and type <h1 into the HTML editor, the console displays this React warning:
Warning: Encountered two children with the same key, `unclosed-tag,8`. 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 ErrorList)
in div (created by ErrorList)
in ErrorList (created by ErrorReport)
in div (created by ErrorReport)
in ErrorReport (created by Connect(ErrorReport))
in Connect(ErrorReport) (created by Output)
in div (created by Output)
in div (created by Output)
in Output (created by Workspace)
in div (created by Workspace)
in div (created by Workspace)
in main (created by Workspace)
in div (created by Workspace)
in Workspace (created by Connect(Workspace))
in Connect(Workspace) (created by Application)
in Provider (created by Application)
in Application
You don't see this in production since the warnings get stripped in the production version of React. Just wanted to note this—feel free to close if you already know about it or aren't worried about it.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Riproduci l'avviso aprendo un nuovo ambiente Popcode e digitando <h1 nell'editor HTML. Inizia dal componente ErrorList indicato nello stack trace di React e verifica come i suoi elementi della lista ricevono le chiavi; il lavoro è completato quando l'avviso relativo alle chiavi duplicate non compare più in sviluppo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, react
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100