You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess you need to wait for all the promises to be resolved before calling the return. At the moment, once you're in the first iteration of the loop you hit return and immediately get out of the function.
Dispatch actions are supposed to be plain objects, but yours are promises. Is there something I'm missing out?
Lets say I am calling a dispatch method in my actions :
and my
add_data
method looks like:It is working for only first data. Only first data is dispatched. It is inside loop and I expect it to dispatch for all the data from loop.
If I dont user
return
in my dispatch it does not wait for function to completeHow can I achieve this ?
Thank you
The text was updated successfully, but these errors were encountered: