Say i got a component with a xml-binded datagrid.
I want a state with a little form appearing to add an item to
I defined state's transitions so that my form appear and
When i validate the new item data user inputs, i want my
datagrid to update and my form to disappear.
The problem is that the events of my form disapearing and my
datagrid updating fires together, and transition is slow.
How can i design such a case to do things in sequence :
1. make my form disapear == go back to default state
2. wait for state transition to complete
3. update datagrid