I already have the delete and update and it’s already functional. I am here to ask how to get the result in real-time. These are the blocks for my edit and delete function.
If you only need to update the list after each deletion or update, what is the need to query the data every 10 seconds? It would be an unnecessary consumption of resources and data.
I copy the blocks you posted but upon closing the screen an error will show. The delete block is alright. In edit, after closing the screen, and the home screen initializes the error will come out
Well, the initial problem you raised is now solved.
Now what happens is regarding the dynamic elements, when you refresh the data the entire procedure is repeated and tries to recreate them on the IDs that already exist, you must first eliminate all the dynamic components
Maybe another solution is to call the delete screen, close the current one and after continuing with editing/deleting call it again, that should work.