Skip to content

Commit 57e4a38

Browse files
committed
chore(multireducer) upgraded multireducer to v2.0.0
1 parent b0788fe commit 57e4a38

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"less-loader": "^2.2.1",
9797
"lru-memoize": "^1.0.0",
9898
"map-props": "^1.0.0",
99-
"multireducer": "^1.0.2",
99+
"multireducer": "^2.0.0",
100100
"piping": "^0.3.0",
101101
"pretty-error": "^1.2.0",
102102
"query-string": "^3.0.0",

src/components/CounterButton/CounterButton.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ import {connectMultireducer} from 'multireducer';
33
import {increment} from 'redux/modules/counter';
44

55
@connectMultireducer(
6-
state => ({count: state.count}),
7-
{increment})
6+
(key, state) => {
7+
return ({count: state.multireducer[key].count});
8+
},
9+
{increment}
10+
)
811
export default class CounterButton extends Component {
912
static propTypes = {
1013
count: PropTypes.number,

0 commit comments

Comments
 (0)