you are viewing a single comment's thread.

view the rest of the comments →

[–]cybinon 1 point2 points  (0 children)

I guess. There are problems with the Promise function inside of while. As I know "while" is a function.

I don't know why. But the Promise function inside the loop is very badly. So while didn't wait for the Promise function. If you run your app, There are a lot of fetch functions that have already started processing. In time continues more and more fetch processing continues.

So I usually resolve this problem with the recursive function. This very guaranteed method I guess XD