Skip to content

Commit

Permalink
Prevent calling callback twice when NO_SSR promise thrown [fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Mar 21, 2019
1 parent 53dc4a4 commit f57a4c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ class Renderer extends ReactDOMServerRenderer {
// Render
this.cycle();

// If done or errored, exit
if (this.exhausted) return;

// Process fallbacks requiring render
this.drainFallbacksQueue();
}
Expand Down

0 comments on commit f57a4c6

Please sign in to comment.