I have developed a basic number array and utilized rxjs for managing UI and the backend loop. Below is my code snippet:
const array100 = new Array(9703)
.fill('x')
.map((value, index) => index);
Rx.Observable.from(array100)
.delayWhen(function(value){return Rx.Observable.timer(value*50)})
.buffer(Rx.Observable.timer(250, 250))
.subscribe(chunk => {
console.log('chunk ', chunk);
});
After successfully creating this sample application, I attempted to implement it in my project with a larger object element array to manage both the UI and backend loop. However, when trying to utilize it, although the array can be observed, it does not chunk the array as expected. It simply passes through the method without any chunking occurring. Unfortunately, debugging this issue has proven difficult.
How can this be achieved using RxJS?