Skip to content

Commit

Permalink
chore: rename willUnmount hook to match the name in `superset-ui/char…
Browse files Browse the repository at this point in the history
…t` (#43)
  • Loading branch information
xtinec authored and zhaoyongjie committed Nov 24, 2021
1 parent 3006b78 commit ab66a72
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import { reactify } from '@superset-ui/chart';
import Component from './NVD3Vis';
import { hideTooltips } from './utils';

function willUnmount() {
function componentWillUnmount() {
hideTooltips(true);
}

export default reactify(Component, { willUnmount });
export default reactify(Component, { componentWillUnmount });

0 comments on commit ab66a72

Please sign in to comment.