Hello,
I have a repeated element based on a localstorage. It works perfectly: when the localstorage is updated with a new element, it updates on the page without refresh.
But if I change the value of one of its setting it seems less responsive and I have to refresh the page to see it, even if it updated instantly in the localstorage.
To check, I changed the repeat element to be base on a variable and the problem is resolved. I find this behavior surprising because updating the localstorage works in one case but not the other.
To make things clearer here is a picture to illustrate. the localstorage contains "image_url" and "favorite". if the user generates a new image, the localstorage is updated and the new image is shown on the page. But if I click on the icon to change "favorite", it is updated in the localstorage but not on the page (or if I click one time the view changes, but if I click again it does not).
So I am wondering: is there a difference between updating the localstorage and a variable? Is this a normal behavior?