You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I feel like I'm close to working this one out as there are other examples in the discussions that are almost similar in what I'm trying to achieve. I have a column of checkboxes, I want to be able to check a box and have that record be cleared from the table which I'm using Svelte's invalidate to achieve after I've passed the id of the record to a function which sends a POST request to a SQL table. However, although the record is disappearing when checked the next record is automatically checked for some reason.
I'm not sure quite where I'm going wrong. Could anyone help to teach me if I'm missing something specific?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I feel like I'm close to working this one out as there are other examples in the discussions that are almost similar in what I'm trying to achieve. I have a column of checkboxes, I want to be able to check a box and have that record be cleared from the table which I'm using Svelte's
invalidate
to achieve after I've passed the id of the record to a function which sends a POST request to a SQL table. However, although the record is disappearing when checked the next record is automatically checked for some reason.I'm not sure quite where I'm going wrong. Could anyone help to teach me if I'm missing something specific?
Here's my code
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions