"use strict";

exports.__esModule = true;
exports["default"] = void 0;
var _react = require("react");
var _default = exports["default"] = function _default() {
  var mountedRef = (0, _react.useRef)(false);
  (0, _react.useEffect)(function () {
    mountedRef.current = true;
    return function () {
      return mountedRef.current = false;
    };
  }, []);
  return mountedRef;
};