Skip to content

Commit

Permalink
Changing lifecycle hook for Listener Mixin to Component Will Mount so…
Browse files Browse the repository at this point in the history
… that it functions identically between server rendering and client rendering.
  • Loading branch information
Christian de Botton authored and goatslacker committed Feb 24, 2015
1 parent c7f579d commit a3a83b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mixins/ListenerMixin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var Subscribe = require('./Subscribe')

var ListenerMixin = {
componentDidMount: function () {
componentWillMount: function () {
Subscribe.create(this)
},

Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ let tests = {
let handler = () => { }

// set it up
ListenerMixin.componentDidMount()
ListenerMixin.componentWillMount()

ListenerMixin.listenTo(myStore, handler)

Expand Down

0 comments on commit a3a83b9

Please sign in to comment.