In my app I am making several api calls. Just recently I changed all my this.ask/tell states to return this.ask/tell, also the routing statements such like StateIntent, StatelessIntent, FollowUpState, etc. I am also using async/await inside everywhere I am making api calls.
Is it okay to do that?
Using return everytime
priyam_jain
#1
jan
#2
Yes! You can use return
in front of all ask
or tell
method calls.
I like to do this as well because it makes it clearer where the intent handling ends and the response is sent back.