DEV Community

Discussion on: Consuming an API in Svelte

Collapse
 
3ddpaz profile image
Ed

What about, if you want to do the promise only when a button is pressed ? let's say update a form. that lives with another promise already executed.?? you still need to check undefined before.. other wise you will show "form updated correctly" on the promise...