Unable To Use The Result Of A Parsequery
I'm using Parse and I'm doing a query to fetch a table . As you can see in the code below, the list LOCALparseQuestionList is populated correctly during the for loop inside the fin
Solution 1:
Its a the number one misunderstanding about asynchronous functions: the code underneath the find function does not run after the find function. It runs before it.
The last log statement in the function logs, and the return statement returns an empty list, because that list is populated later, after the find is done and the results are returned. Anything you do that depend on LOCALparseQuestionList
being populated must be done within the find's callback.
Post a Comment for "Unable To Use The Result Of A Parsequery"