Skip to content

Commit

Permalink
feat: allow reactify callbacks to access props (apache#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Ritter authored and zhaoyongjie committed Nov 26, 2021
1 parent 37e08a7 commit f0204ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function reactify<Props extends object>(
componentWillUnmount() {
this.container = undefined;
if (callbacks && callbacks.componentWillUnmount) {
callbacks.componentWillUnmount();
callbacks.componentWillUnmount.bind(this)();
}
}

Expand Down

0 comments on commit f0204ea

Please sign in to comment.