style: remove warning form eslint

This commit is contained in:
unix
2020-04-01 06:43:40 +08:00
parent e6b81ba3db
commit 4d9ba489f4
3 changed files with 12 additions and 12 deletions

View File

@@ -35,7 +35,6 @@ const useRealShape = <T extends HTMLElement>(ref: MutableRefObject<T | null>): S
})
const update = () => {
const { width, height } = getRealShape(ref.current)
console.log(123, 'update')
setState({ width, height })
}
useEffect(() => update(), [ref.current])