Skip to content

Probable regression in ajax.getJSON after updating to 5.0.0-beta.11 #1874

@zavan

Description

@zavan

RxJS version:
5.0.0-beta.11

Code to reproduce:

import { Observable } from 'rxjs/Observable';
import { ajax } from 'rxjs/observable/dom/ajax';

console.log(ajax.getJSON('/api/v2/users'));

Expected behavior:
AjaxObservable { _isScalar: false, request: Object }

Actual behavior:
Uncaught (in promise) TypeError: (intermediate value).map is not a function(… ) in ajaxGetJSON

Additional information:
This is probably a regression caused by this commit: 7a77437
Introduced in 5.0.0-beta.11, since it works fine if I downgrade to 5.0.0-beta.10.

I'm using rxjs with redux-observable, if that makes any difference.

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