"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useStaticCallback = void 0;
var _react = require("react");
var useStaticCallback = exports.useStaticCallback = function useStaticCallback(callback) {
  var callbackRef = (0, _react.useRef)(callback);
  callbackRef.current = callback;
  return (0, _react.useCallback)(function () {
    return callbackRef.current.apply(callbackRef, arguments);
  }, []);
};