We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ca34fd commit 46bb5a3Copy full SHA for 46bb5a3
src/fetch.js
@@ -41,7 +41,7 @@ export function fetchImpl(
41
});
42
} else {
43
return response.json().then(json => {
44
- onNext(json);
+ onNext([json]);
45
onComplete();
46
47
}
src/xhr.js
@@ -41,7 +41,7 @@ export function xhrImpl(
patchResolver.handleChunk(chunk);
index = xhr.responseText.length;
} else if (this.readyState === this.DONE && !isDeferred) {
- onNext(JSON.parse(xhr.response));
+ onNext([JSON.parse(xhr.response)]);
0 commit comments