mirror of
https://github.com/apache/superset.git
synced 2024-09-19 12:09:42 -04:00
feat: allow reactify callbacks to access props (#200)
This commit is contained in:
parent
37e08a7a9d
commit
f0204ea9bd
@ -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)();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user