'use strict';

var o = require('react');

"use strict";
function useLatestFunction(thing) {
  const latestFunctionRef = o.useRef(thing);
  latestFunctionRef.current = thing;
  return o.useCallback(
    (...args) => latestFunctionRef.current(...args),
    []
  );
}

exports.useLatestFunction = useLatestFunction;
//# sourceMappingURL=useLatestFunction.js.map
