@samitouri / QOS-React / commits / c05b4b81f9

Link to useLayoutEffect gist in a warning (#15158)

Dan Abramov committed Mar 20, 2019 at 13:40 UTC c05b4b81f91c0b43a02e101d6a37b3de768f017b
1 file changed +2 -1
packages/react-dom/src/server/ReactPartialRendererHooks.js
+2 -1
@@ -393,7 +393,8 @@ export function useLayoutEffect(
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.',
396 + 'components that render exclusively on the client. ' +
397 + 'See https://fb.me/react-uselayouteffect-ssr for common fixes.',
398 );
399 }
400