Svelte

Fix Todo delete button not disabling while waiting for API response

#2172

Pull request

Merged
R
ric2b
Aug 12, 2021, 12:58 AM

- currently the todo's in the demo app suffer from a bug where you can click delete on a todo while the first delete is still pending.

This allows multiple delete requests to be sent, HTTP 500 errors to be received (https://github.com/sveltejs/api.svelte.dev/blob/master/src/routes/todos.ts#L46) and the todo to never visually disappear.

image

Info

Merged at Aug 12, 2021, 1:30 PM
Merged by benmccann
Assignees None
Reviewers None
Labels None
Milestone None

Pro tip: You can prefix GitHub URLs of issues, PRs or discussions with svcl.dev/ to view them on this page! Also try it on a GitHub release ;)