react-native-web-internals
Version:
React Native for Web
9 lines (8 loc) • 388 B
JavaScript
import * as React from "react";
var UNINITIALIZED = typeof Symbol == "function" && typeof Symbol() == "symbol" ? Symbol() : Object.freeze({});
function useStable(getInitialValue) {
var ref = React.useRef(UNINITIALIZED);
return ref.current === UNINITIALIZED && (ref.current = getInitialValue()), ref.current;
}
export { useStable as default };
//# sourceMappingURL=index.native.js.map