Skip to content

Commit

Permalink
do not initialise subscription values
Browse files Browse the repository at this point in the history
  • Loading branch information
roman01la committed Jun 22, 2016
1 parent 083cbfc commit 78d7ba1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/connect.js
Expand Up @@ -14,11 +14,7 @@ export default function connect(ReactComponent, { subscriptions = {}, mutations
this._subscriptions = [];
this._mutations = {};

this.state = Object.keys(subscriptions)
.reduce((initialState, qname) => {
initialState[qname] = [];
return initialState;
}, {});
this.state = {};

this._subscribe = this._subscribe.bind(this);
this._unsubscribe = this._unsubscribe.bind(this);
Expand Down

0 comments on commit 78d7ba1

Please sign in to comment.