Nishan Bende
Results
2
issues of
Nishan Bende
Allow passing a flag named enableSSR and use useEffect instead of useLayoutEffect when enableSSR is true. Referred gist - https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85 Related issue: https://github.com/Swizec/useDimensions/issues/27#issue-553466318
We can use a flag named isSSR and use useEffect hook instead of useLayoutEffect. https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85