# Warning: useLayoutEffect does nothing on the server

**Code:** `useLayoutEffect SSR` · **Category:** React · **Seen on:** React

A component using useLayoutEffect was server-rendered, where layout effects can’t run.

## Meaning

Common in libraries during SSR (Next.js, Remix). Usually harmless; React 18.3+ removed this warning.

## Common causes

- Library component using useLayoutEffect rendered on the server
- Your own SSR components measuring layout

## Quick fix

1. Use an isomorphic layout effect (useEffect on the server)
2. Render the component client-only
3. Upgrade React/library

## Detailed fix by platform

### React

1. `const useIsoLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;`

## How to diagnose

1. **Component** — Which one?
2. **Need** — Must it measure layout?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/react/uselayouteffect-does-nothing-on-server)
