react-native-onyx
Version:
State management for React Native
10 lines (9 loc) • 422 B
TypeScript
/**
* Creates a mutable reference to a value, useful when you need to
* maintain a reference to a value that may change over time without triggering re-renders.
*
* @deprecated This hook breaks the Rules of React, and should not be used.
* The migration effort to remove it safely is not currently planned.
*/
declare function useLiveRef<T>(value: T): import("react").MutableRefObject<T>;
export default useLiveRef;