add a check for window obj before useLayoutEffect hook
add a check for window obj before useLayoutEffect hook

artsy/reaction-force,xtina-starr/reaction,xtina-starr/reaction,xtina-starr/reaction,artsy/reaction,artsy/reaction,artsy/reaction-force,xtina-starr/reaction,artsy/reaction