mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
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:
parent
49e792649d
commit
04c46fc01a
2 changed files with 4 additions and 1 deletions
|
@ -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?: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue