While the #34 workaround is available, let me attract your attention for a better implementation of useWindowSize() as a part of usehooks-ts package. Despite the same functionality, the useWindowSize() hook I mention demonstrates NextJS-friendly implementation which does not raise any CSR issues and does not require dynamic import wrappers. Mind the returned object instead of tuple though.
PS
I understand "workaround" as a quick-fix while permanent solution is being investigated. Well, I guess this is it.
Dear team,
While the #34 workaround is available, let me attract your attention for a better implementation of
useWindowSize()
as a part of usehooks-ts package. Despite the same functionality, theuseWindowSize()
hook I mention demonstrates NextJS-friendly implementation which does not raise any CSR issues and does not require dynamic import wrappers. Mind the returned object instead of tuple though.PS I understand "workaround" as a quick-fix while permanent solution is being investigated. Well, I guess this is it.
Many thanks