As you can see in the picture, I have only one array element in the selected array, but still the row repeat region showing old data, how can I fix this ?
Edit: The server connect api is updating automatically with socket refresh, that’s when the bug is coming. If the page is refreshed then its working correctly. And the server connect is in the layout and not in the content page. The “Repeat children” component was working correctly, but could not use it due to design flaws
The data is coming from the server connect api. This api is refreshed with socket. When the server action is refreshed this happens.
The scenario is the other socket connected user logs out, which causes the data to refresh and the array becomes empty. But the design does not update here. And when the same user logs in the same item is added to array but the row is reading it as second element. Even though the response of the api is single element.
Could you check what dmx.parse("fetch_online_sellers.data.query") returns. I don’t see anything strange in the html. Not sure where those functions come from, they look like formatter functions.
The functions in the repeat you can only get that if the expression is wrong, for example if you use just fetch_online_sellers instead of fetch_online_sellers.data.query. Isn’t there some leftover html somewhere, the first item is always the same and is even there while there are no records in the result.
In the repeat use $key and {{json($value)}}, that should printout the key and value of the repeating item, that could help for debugging it.
Here I used the same html code, except the value shown here is {{$value}}, which is the object of an entire item. This was to show you the extra items I was getting from the array. I have also removed the dmx-show attribute to display these functions, because in the previous pictures I have used dmx-show dynamic attribute to hide the unwanted elements.