Skip to content

Commit c05b4b8

Browse files
authored
Link to useLayoutEffect gist in a warning (#15158)
1 parent 061d6ce commit c05b4b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-dom/src/server/ReactPartialRendererHooks.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@ export function useLayoutEffect(
393393
"be encoded into the server renderer's output format. This will lead " +
394394
'to a mismatch between the initial, non-hydrated UI and the intended ' +
395395
'UI. To avoid this, useLayoutEffect should only be used in ' +
396-
'components that render exclusively on the client.',
396+
'components that render exclusively on the client. ' +
397+
'See https://fb.me/react-uselayouteffect-ssr for common fixes.',
397398
);
398399
}
399400

0 commit comments

Comments
 (0)