Refactor the app.js file


#21

Hi, i have structured my projekt based on the best practices
this is my structure:


i have states and app folder.
My problem:
if i have an async intent in states like this

let wsResponse = await getSpotData(typeOfSpot)
this.ask(wsResponse)

this.ask not works
but if i have the intent in the app.js works.
Any idea how to solve?


#22

maybe a return statement could fix it:
return this.ask(..)