perf: less churn
This commit is contained in:
parent
a1a6b98639
commit
01d63e5ee0
|
@ -25,7 +25,7 @@ export default function Dom({children}) {
|
||||||
return () => {
|
return () => {
|
||||||
window.removeEventListener('resize', onResize);
|
window.removeEventListener('resize', onResize);
|
||||||
}
|
}
|
||||||
});
|
}, []);
|
||||||
return (
|
return (
|
||||||
<div className={styles.dom} ref={ref}>
|
<div className={styles.dom} ref={ref}>
|
||||||
{scale > 0 && (
|
{scale > 0 && (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user