Skip to content

Commit 2cee116

Browse files
authored
Needs methods as well
I am in need to extend the component after its being used with the `connect()`. The extended component was missing with `methods`. So here is the possible fix.
1 parent bc12014 commit 2cee116

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/connect.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ export default function connect(mapStateToProps, mapActionsToProps) {
113113

114114
beforeDestroy() {
115115
this.vuaReduxUnsubscribe();
116-
}
116+
},
117+
118+
methods: children.methods
117119
};
118120
};
119121
}

0 commit comments

Comments
 (0)