ktongue's picture
download
raw
544 Bytes
'use client';
import * as React from 'react';
/**
* A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.
* This is useful for effects that are only needed for client-side rendering but not for SSR.
*
* Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85
* and confirm it doesn't apply to your use-case.
*/
const useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
export default useEnhancedEffect;

Xet Storage Details

Size:
544 Bytes
·
Xet hash:
22ad6a5a1064ac3a4a05454f368b24e3ad119a12ee738d043bea7f60363d6d88

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.