diff --git a/packages/redux/index.js b/packages/redux/index.js index 83fc0fda5..06aa16973 100644 --- a/packages/redux/index.js +++ b/packages/redux/index.js @@ -9,7 +9,7 @@ var hopsReact = require('hops-react'); var REDUX_STATE = 'REDUX_STATE'; -exports.mixin = { +exports.contextDefinition = { constructor: function (options) { this.reducers = {}; Object.keys((options && options.reducers) || {}).forEach( @@ -74,4 +74,7 @@ exports.mixin = { } }; -exports.createContext = hopsReact.createContext.mixin(exports.mixin); +exports.createContext = hopsReact.combineContexts( + hopsReact.contextDefinition, + exports.contextDefinition +);