Rendering and updating UI without different key

2025.01.20 05:27 DevShin101 Rendering and updating UI without different key

How can I render the UI by looping the list and updating the list in an immutable way that would change the rendered UI? The data is from the backend, and I use the ID as the key while looping, so the ID is the same most of the time. Although the data is re-fetched, the UI doesn't change.
If I use a different key every time I loop the list, the UI changes when I re-fetch the data.
Are there any other ways without using a different key every time UI is rendered? Also, what should I keep in mind when I'm using AlpineJS?

...