fix: mem leak
This commit is contained in:
parent
6c00da70f9
commit
dedadc3f03
|
@ -36,7 +36,7 @@ const DebugUi = ({
|
|||
stage.on('displaySizeChanged', onStageResized);
|
||||
onStageResized(stage.displaySize);
|
||||
return () => {
|
||||
stage.off('resized', onStageResized);
|
||||
stage.off('displaySizeChanged', onStageResized);
|
||||
};
|
||||
}, []);
|
||||
// F2 toggle debug.
|
||||
|
|
Loading…
Reference in New Issue
Block a user