Repository navigation
Commit d3d6ff9
committed
fix(mobile): Browser page no longer logs a duplicate key warning
The address bar and the stream view are siblings in the same fragment and
both used the tab id as their key, so React warned about two children with
the same key every time the page rendered a tab. On Android dev builds that
shows as a red toast over the page.
Prefix each key so they are unique among siblings. Both still change with
the tab id, so switching tabs remounts the address bar and the stream view
as before.1 parent 5809487 commit d3d6ff9
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
0 commit comments