Given that now we can call javascript it would be great to have an action in flows that just waits for a callback to continue with the next steps.
So basically the async/promise and await workflow.
Right now if we call a javascript there is no easy way to return to the flow that initiated the call.
I am thinking in the terms of adding the wait for callback step and getting automatically a piece of code to copy and paste in our callback function et voila the flow continues where it was waiting.
Tried a bunch of things and I didn’t manage to make it wait for the callback.
Is this something implemented @patrick?
I may be looking at this the wrong way
The most noticeable difference is that the first modal is called from a normal flow and the second one from an inline flow. Don’t know if there are any differences about how both approaches handle promises.
The browser shows that error in the console because there was no catch(), so there was no error handling. In the flow component I catch the errors and the error message is stored in the lastError parameter. It also has an option throwError to actually throw the error again.
The inline flow doesn’t have these options. I could probably catch the errors there also and do nothing with them instead of the current behavior. Btw. there is no actual error thrown, it is actually just a warning that you didn’t catch the error.
Ok. That would explain the different behaviour. Regarding the console error that is not an actual error I’m fine with that. All in all I just wanted to know if I was safe using reject() which it seems that I am.
Regarding adding the same error handling to the inline flows it’s not urgent nor important for me for now so no pressure from my side.
Thanks @patrick for the further insights on how flows work.