This repository has been archived on 2024-09-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
front/node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.d.ts
2024-09-18 13:34:19 -03:00

11 lines
493 B
TypeScript

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.
*/
declare const useEnhancedEffect: typeof React.useLayoutEffect;
export default useEnhancedEffect;