Skip to content

Commit

Permalink
fix(server): do not register components with server controller
Browse files Browse the repository at this point in the history
  • Loading branch information
christianalfoni committed Aug 16, 2016
1 parent b85f420 commit 047ca0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ module.exports = function (paths, signals, Component) {
if (!Object.keys(statePaths).length) {
return
}
this.context.cerebral.registerComponent(this, this.getDepsMap(this.props))
if (!this.context.cerebral.controller.isServer) {
this.context.cerebral.registerComponent(this, this.getDepsMap(this.props))
}
},

componentWillReceiveProps: function (nextProps) {
Expand Down

0 comments on commit 047ca0d

Please sign in to comment.