Hi everyone, let’s imagine I have a number of an item that varies according to + and -, each time I press one of the buttons it makes a call api to change +1 or -1 the value. Except that it doesn’t look very professional because the workflow takes 3 seconds, counting the call api, the fetch collection etc… is there any way of getting around this?
You could fetch the current number with an initial API call and save that to a variable which you bind to the displayed number. With each click on the buttons you change that variable which changes the displayed number immediately. After change you send the new number to the API.
Thanks for the tip, but I’ve already tested this. In fact, when you start a workflow on weweb and then start it again when it’s not yet finished, it finishes anyway and doesn’t start from the beginning. And knowing that this + and - is in a collection of items
Is the workflow you are triggering a global workflow?
Example - you click on the button which in turn - “executes workflow” that then triggers a global workflow