Skip to content

Commit

Permalink
temp fix for onAfterRender after unmount (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorDykhta authored Jan 12, 2022
1 parent 8d8726f commit a089cf8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ export class ExportVideoPanelPreview extends Component {
componentWillUnmount() {
const {memoDevicePixelRatio} = this.state;
this._setDevicePixelRatio(memoDevicePixelRatio);

if (this.mapRef.current) {
const map = this.mapRef.current.getMap();
map.off('render', this._onAfterRender);
}
}

_resizeVideo() {
Expand Down

0 comments on commit a089cf8

Please sign in to comment.