We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daeda44 commit cbad144Copy full SHA for cbad144
packages/react-dom/src/server/ReactPartialRendererHooks.js
@@ -392,8 +392,7 @@ export function useLayoutEffect(
392
'useLayoutEffect does nothing on the server, because its effect cannot ' +
393
"be encoded into the server renderer's output format. This will lead " +
394
'to a mismatch between the initial, non-hydrated UI and the intended ' +
395
- 'UI. To avoid this, useLayoutEffect should only be used in ' +
396
- 'components that render exclusively on the client.',
+ 'UI. See https://fb.me/react-uselayouteffect-ssr for common ways to fix this.',
397
);
398
}
399
0 commit comments