Skip to content

Commit

Permalink
Link to useLayoutEffect gist in a warning (#15158)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Mar 20, 2019
1 parent 061d6ce commit c05b4b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-dom/src/server/ReactPartialRendererHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ export function useLayoutEffect(
"be encoded into the server renderer's output format. This will lead " +
'to a mismatch between the initial, non-hydrated UI and the intended ' +
'UI. To avoid this, useLayoutEffect should only be used in ' +
'components that render exclusively on the client.',
'components that render exclusively on the client. ' +
'See https://fb.me/react-uselayouteffect-ssr for common fixes.',
);
}

Expand Down

0 comments on commit c05b4b8

Please sign in to comment.