in packages/react/react-application/src/index.tsx [150:164]
public componentWillUnmount() {
this.addThingToDo('unmount', () => {
let singleton = this.props.sandbox?.singleton;
if(singleton === undefined) {
singleton = true;
}
if (this.app && this.app.parcel && this.app.parcel.getStatus() === "MOUNTED") {
return unmount(this.app);
}
})
this.unmounted = true
}