We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80ef8a6 commit a4075e0Copy full SHA for a4075e0
src/performs.js
@@ -27,7 +27,18 @@ export default function performs(...actionKeys) {
27
28
constructor(props, context) {
29
super(props, context);
30
- this.actions = mapActions(pick(this.context.getActions(), actionKeys));
+ this.updateActions(props);
31
+ }
32
+
33
+ componentWillReceiveProps(nextProps) {
34
+ this.updateActions(nextProps);
35
36
37
+ updateActions(props) {
38
+ this.actions = mapActions(
39
+ pick(this.context.getActions(), actionKeys),
40
+ props
41
+ );
42
}
43
44
render() {
0 commit comments