Jesus sucks
This commit is contained in:
12
backend/frontend/node_modules/@restart/hooks/cjs/useCommittedRef.d.ts
generated
vendored
Normal file
12
backend/frontend/node_modules/@restart/hooks/cjs/useCommittedRef.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/// <reference types="react" />
|
||||
/**
|
||||
* Creates a `Ref` whose value is updated in an effect, ensuring the most recent
|
||||
* value is the one rendered with. Generally only required for Concurrent mode usage
|
||||
* where previous work in `render()` may be discarded before being used.
|
||||
*
|
||||
* This is safe to access in an event handler.
|
||||
*
|
||||
* @param value The `Ref` value
|
||||
*/
|
||||
declare function useCommittedRef<TValue>(value: TValue): React.MutableRefObject<TValue>;
|
||||
export default useCommittedRef;
|
||||
Reference in New Issue
Block a user