You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, a console error is thrown about useLayoutEffect:
To do:
Investigate cause (likely use of ReactDOMServer + useLayoutEffect from grommet component does't place nicely because useLayoutEffect is client-side only)
Determine best approach to stop error from appearing in console. File PR to fix.
The text was updated successfully, but these errors were encountered:
/* eslint-disable no-restricted-imports */import{useLayoutEffectasvanillaUseLayoutEffect,useEffect}from'react';/** * A substitute for React's useLayoutEffect, which does not generate warnings on * SSR. It is named useLayoutEffect so that all eslint rules applying to the * original useLayoutEffect would also apply to it. * This solution was suggested by Alex Reardon. * @see https://medium.com/@alexandereardon/uselayouteffect-and-ssr-192986cdcf7a * @see https://github.com/grommet/grommet/issues/4765 */exportconstuseLayoutEffect=typeofwindow!=='undefined' ? vanillaUseLayoutEffect : useEffect;exportdefaultuseLayoutEffect;
Currently, a console error is thrown about
useLayoutEffect
:To do:
The text was updated successfully, but these errors were encountered: