Just Checking - Do onClick Data Store Actions Happen in Sequence?

When a button is clicked, I want to:

  1. Delete some entries from a Data Store
  2. Once those entries are deleted, change some values within the Data Store using a flow.

So I can do it like this:

dmx-on:click="
    responses.delete({attendee_number: this_attendee_number.value});
    flow_reorder_responses.run({})"

Is Wappler structured such that the responses.delete is guaranteed to finish before the flow_reorder_responses.run starts?

Thanks!
Antony.

Data store has a deleted event. So post delete, that should get invoked. You can try to run the flow there to ensure it always runs after the delete step is complete.

As for the sequence up to, it should ideally work. But haven’t worked with data stores exhaustively to say for sure.