Initial project import
This commit is contained in:
12
node_modules/tunnel-rat/dist/utils.d.ts
generated
vendored
Normal file
12
node_modules/tunnel-rat/dist/utils.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import React from 'react';
|
||||
/**
|
||||
* An SSR-friendly useLayoutEffect.
|
||||
*
|
||||
* React currently throws a warning when using useLayoutEffect on the server.
|
||||
* To get around it, we can conditionally useEffect on the server (no-op) and
|
||||
* useLayoutEffect elsewhere.
|
||||
*
|
||||
* @see https://github.com/facebook/react/issues/14927
|
||||
*/
|
||||
export declare const useIsomorphicLayoutEffect: typeof React.useLayoutEffect;
|
||||
export declare function useMutableCallback<T>(fn: T): React.MutableRefObject<T>;
|
||||
Reference in New Issue
Block a user