stream-chat-react-native-core
Version:
The official React Native and Expo components for Stream Chat, a service for building chat applications
14 lines • 360 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useLazyRef = void 0;
var _react = require("react");
var useLazyRef = getInitialValue => {
var ref = (0, _react.useRef)(null);
if (ref.current === null) {
ref.current = getInitialValue();
}
return ref;
};
exports.useLazyRef = useLazyRef;
//# sourceMappingURL=useLazyRef.js.map