Closed ethanfox closed 1 year ago
Thanks for the report! I'll look into the issue.
Unfortunately I've not been able to figure this one out. Any luck on your end @ethanfox?
I fixed this. I don’t have the solution on hand but it had to do with Sveltes reactivity
In the video below you can see that I have a table with a thumbnail cell that allows you to change the picture when clicking it. As shown in the video the UI does not correctly update but the data does. When closing the table the correct pictures show in the correct rows.
Also, the loading indicator also does not show on the right cell even though they are all the same component iterated through an array.
I am using the svelte-headless-table library to make this table, and the data is in JSON format from supabase.
https://youtube.com/shorts/8kakKWNrIMI?feature=share
Here is the code that I think might be the issue but since that data gets updated correctly it might be something else. I need the UI to update correctly.
Update Database
Cell Component