Skip to content

Commit

Permalink
Use a ReplaySubject in PendingRequests to deal with timing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
clbond committed Mar 27, 2017
1 parent 471eacb commit 10d467b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "angular-ssr",
"version": "0.0.80",
"version": "0.0.81",
"description": "Angular server-side rendering implementation",
"main": "build/index.js",
"typings": "build/index.d.ts",
Expand Down
6 changes: 4 additions & 2 deletions source/platform/http/pending-requests.ts
@@ -1,8 +1,10 @@
import {Injectable} from '@angular/core';

import {Observable, Subject} from 'rxjs';
import {Observable, ReplaySubject} from 'rxjs';

const pending = new Subject<number>();
const pending = new ReplaySubject<number>();

pending.next(0);

const XmlHttpRequest = require('xhr2');

Expand Down

0 comments on commit 10d467b

Please sign in to comment.