Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

useCommittedRef.d.ts 484B

123456789101112
  1. /// <reference types="react" />
  2. /**
  3. * Creates a `Ref` whose value is updated in an effect, ensuring the most recent
  4. * value is the one rendered with. Generally only required for Concurrent mode usage
  5. * where previous work in `render()` may be discarded befor being used.
  6. *
  7. * This is safe to access in an event handler.
  8. *
  9. * @param value The `Ref` value
  10. */
  11. declare function useCommittedRef<TValue>(value: TValue): React.MutableRefObject<TValue>;
  12. export default useCommittedRef;