popcodeorg / popcodeorg/popcode
React key warning in development mode
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 191
- Forks
- 143
- Ø Merge
- 4 T. 11 Std.
- Gemergte PRs (30 T.)
- 5
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere die Warnung, indem du eine neue Popcode-Umgebung öffnest und im HTML-Editor <h1 eingibst. Beginne mit der in der React-Stacktrace genannten ErrorList-Komponente und untersuche, wie ihre Listenelemente Keys erhalten; abgeschlossen ist die Aufgabe, wenn die Warnung wegen doppelter Keys in der Entwicklungsumgebung nicht mehr erscheint.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, react
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100