Skip to content

Commit

Permalink
Don't load cls-q browser-side (#949)
Browse files Browse the repository at this point in the history
This is only necessary on the server. Don't pull into browser bundles.
  • Loading branch information
gigabo authored Sep 8, 2017
1 parent d3a7777 commit 76a2a30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react-server/core/util/RequestLocalStorage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
var RequestLocalStorage = require('request-local-storage');

RequestLocalStorage.patch(require('cls-q'));
if (SERVER_SIDE) {
RequestLocalStorage.patch(require('cls-q'));
}

module.exports = RequestLocalStorage;

0 comments on commit 76a2a30

Please sign in to comment.