svelte multiple api calls with subsequent click on a button?

It seems that when using electron api each individual press of a button calls the api function x+1 times where x is the times you've pressed the button prior.
Was this page helpful?