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
not sure if this is a bug, but with the current implementation this behavior is expected (or at least it can be explained): https://github.com/ReactiveX/rxjs/blob/master/src/internal/scheduled/scheduleArray.ts
For each animationFrame is looks at one index of the array. so at the first animationFrame it emits an item and at the second animationFrame it closes the Observable because there are no more items to emit. here repeat subscribes again so the emit happens at the third animationFrame
Describe the bug
trying this:
runs at 30fps, meaning the
requestAnimationFrame
is called twice (tested)whilst this:
runs at 60fps
You can notice this behavior here: https://stackblitz.com/edit/rxjs-aksefi?file=index.ts and the corresponding question that raised this bug, here: https://stackoverflow.com/questions/75781770/rxjs-animationframescheduler-is-triggered-only-every-35ms
Is this a bug or by design?
Expected behavior
would expect to print values ~= 16
Reproduction URL
https://stackblitz.com/edit/rxjs-aksefi?file=index.ts
Version
7.8.0
The text was updated successfully, but these errors were encountered: