Skip to content

Waiting for submit response #195

Answered by DrRataplan
PietroLiuzzo asked this question in Q&A
Discussion options

You must be logged in to vote

Hm, this appears to be a bug. In this place: https://github.com/Jinntec/Fore/blob/dev/src/actions/abstract-action.js#L232 we fire the 'done' event when we are done with the first iteration of the while. So in your case, after a second.

In other cases, when we have an infinite while loop, we actually want to release the event loop (to allow new 'done' events to come through). Problem here is that we cannot distinguish those loops...

You could choose to do something like this to make this work though:

  • Add an additional instance with just a boolean in there. Something like <search-state running="true"/>
  • After the search is done, add a fx-setvalue to set the running to 'false'
  • <fx-action whi…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@JoernT
Comment options

Answer selected by PietroLiuzzo
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants