diff --git a/src/app/components/OutfitPreview.js b/src/app/components/OutfitPreview.js index d638876..67a332b 100644 --- a/src/app/components/OutfitPreview.js +++ b/src/app/components/OutfitPreview.js @@ -77,8 +77,8 @@ export function OutfitLayers({ doAnimations = false, }) { const [isMounted, setIsMounted] = React.useState(false); - React.useEffect(() => { - setTimeout(() => setIsMounted(true), 0); + React.useLayoutEffect(() => { + setIsMounted(true); }, []); return ( @@ -158,7 +158,8 @@ export function OutfitLayers({ ))} - - - - - - - - + + + ); } -export function FullScreenCenter({ children, zIndex }) { +export function FullScreenCenter({ children, ...otherProps }) { return ( {children}