Closed
Description
Since the data doesn't contain an id
field for each item, the workload is now generating keys for each <li>
element dynamically while rendering, using uuidv4()
.
This will cause keys to never match up between renders, leading to these elements being recreated every time, which defeats the purpose of keys and slows the performance [1].
Besides, this implementation seems inconsistent with that of NewsSite-Nuxt, which uses item.id
(which is undefined) as the key binding directly.
Metadata
Metadata
Assignees
Labels
No labels