-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.repeat() causes RangeError: Maximum call stack size exceeded #2341
Comments
Check this issue #651 which explains in detail (especially comment #651 (comment)) for background why it's behavior's changed between two implementations. In short in v5 default scheduling strategy has changed, so if you'd like to repeat synchronous observable you need to schedule it accordingly via I believe issue itself is sufficiently explained in original issue, closing it as dupe. |
@kwonoj, it seems the proper technique would be to use PS: This is not an edge case for me, as I often write entire programs based in RX, including a computer learning algorithm where I encountered this issue. |
@alancnet check https://github.com/ReactiveX/rxjs/blob/master/MIGRATION.md#schedulers-renamed migration guide for schedulers. you may able to use |
@alancnet |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
RxJS version:
5.1.0
Code to reproduce:
require('rxjs').Observable.of(1).repeat().subscribe(() => {})
Expected behavior:
Code should block forever and do nothing.
Actual behavior:
RangeError: Maximum call stack size exceeded
Additional information:
rx 4.1.0 behaves correctly:
require('rx').Observable.just(1).repeat().subscribe(() => {})
The text was updated successfully, but these errors were encountered: