that I can get in peices from requests.
For example I can get 1000 values every time and ask 1000 next items and there's no way to know how many items are there in total.
This is obviously can be implemented with a while loop, however, I don't really trust while loops.
I'm thinking of using an event bus. Do you think its a viable solution and are there any better ones?
Hypothetically: const array = [1,2,3,....,n] array.length == n so you can just do: for (let I=0;I<array.length;I++){ //Do stuff }
Just hold an variable in the server which will increased each time when you request the server.
Обсуждают сегодня