You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all: This is an really awesome wizard implementation for Vue!
I built a wizard and was wondering if there is the possibility to execute some asnyc action at the NEXT event.
The requirement in my case is to save the state of each wizard step, so that a user can continue the whole wizard at anytime without loosing data.
I tried something like this to have an "intermediate" step this kind of async operation.
The problem was that this intermediate state is considered as a wizard step and therefore it tells me that I have to define the stepView.
saveFirstStep: {
invoke: {
id: 'saveFirstStep',
src: saveData, // is a Promise that returns the saved id
onDone: {
target: 'firstStep',
actions: [assign({
id: (context, event: EventObject) => event.data,
}), raise('NEXT')],
},
onError: {
target: 'firstStep',
},
},
order: 0,
},
Is there already a possibilty with the current solution to make this kind of async transition work?
In the meantime I implemented my own buttons on each step, that do the work and then send the "NEXT" event.
Thanks in advance!
Christoph
The text was updated successfully, but these errors were encountered:
Hi @mayashavin !
First of all: This is an really awesome wizard implementation for Vue!
I built a wizard and was wondering if there is the possibility to execute some asnyc action at the NEXT event.
The requirement in my case is to save the state of each wizard step, so that a user can continue the whole wizard at anytime without loosing data.
I tried something like this to have an "intermediate" step this kind of async operation.
The problem was that this intermediate state is considered as a wizard step and therefore it tells me that I have to define the stepView.
Is there already a possibilty with the current solution to make this kind of async transition work?
In the meantime I implemented my own buttons on each step, that do the work and then send the "NEXT" event.
Thanks in advance!
Christoph
The text was updated successfully, but these errors were encountered: