Skip to content

Observable.interval in inactive tab work different than plain js setInterval() #3042

@nshikov

Description

@nshikov

Observable.interval in inactive tab work different than plain js setInterval()

Open http://jsbin.com/muvaqipaqa/1/edit?html,js,console,output
See 'i:0', 'j:0', ... in console. Switch to another browser tab for 30 seconds or so. Switch back to jsbin tab. See that i have much more different value than j

RxJS version:
5.5.2

Code to reproduce:
http://jsbin.com/muvaqipaqa/1/edit?html,js,console,output

Expected behavior:
i and j have same values
Actual behavior:
i and j have different values

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions