We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a1b3ee8 + 1142c8c commit 4dfce75Copy full SHA for 4dfce75
1 file changed
src/Nova.jsx
@@ -29,6 +29,17 @@ class Nova extends Component {
29
}
30
31
32
+ componentWillUnmount() {
33
+ if (window !== 'undefined') {
34
+ const id = this.placeholder.current.getAttribute("data-hypernova-id");
35
+ const { name } = this.props;
36
+ const customEvent = new CustomEvent('NovaUnmount', {
37
+ detail: { id, name },
38
+ });
39
+ document.dispatchEvent(customEvent);
40
+ }
41
42
+
43
render() {
44
const { name, data } = this.props;
45
return (
0 commit comments