fix: don't render due to zoom after unmount (#2779)
* fix: don't render due to zoom after unmount * update changelog * remove unnecessary flush
This commit is contained in:
@ -3816,7 +3816,9 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
||||
};
|
||||
|
||||
private resetShouldCacheIgnoreZoomDebounced = debounce(() => {
|
||||
this.setState({ shouldCacheIgnoreZoom: false });
|
||||
if (!this.unmounted) {
|
||||
this.setState({ shouldCacheIgnoreZoom: false });
|
||||
}
|
||||
}, 300);
|
||||
|
||||
private getCanvasOffsets(offsets?: {
|
||||
|
Reference in New Issue
Block a user