Skip to content

Commit

Permalink
refactor(redux): rename mixin definition export
Browse files Browse the repository at this point in the history
BREAKING CHANGE: export naming changed
  • Loading branch information
dmbch committed Nov 22, 2017
1 parent 8bd2955 commit 321e733
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/redux/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -74,4 +74,7 @@ exports.mixin = {
}
};

exports.createContext = hopsReact.createContext.mixin(exports.mixin);
exports.createContext = hopsReact.combineContexts(
hopsReact.contextDefinition,
exports.contextDefinition
);

0 comments on commit 321e733

Please sign in to comment.