progress
This commit is contained in:
parent
c212a837cd
commit
830ac1923d
|
@ -15,8 +15,8 @@ function useDimensions(ref: RefObject<HTMLElement>) {
|
|||
height: ref.current?.offsetHeight ?? 0,
|
||||
}),
|
||||
() => JSON.stringify({
|
||||
width: window.innerWidth,
|
||||
height: window.innerHeight
|
||||
width: 0,
|
||||
height: 0,
|
||||
})
|
||||
)
|
||||
return useMemo(() => JSON.parse(dimensions), [dimensions])
|
||||
|
|
Loading…
Reference in New Issue