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 26, 2021
1 parent 8b4bb80 commit abc1ad4
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 abc1ad4

Please sign in to comment.