import { _ as _slicedToArray } from '../../../slicedToArray-DmsZvA_9.js';
import { useState } from 'react';
import '../../../unsupportedIterableToArray-Dqz8Y8_I.js';

var useForceUpdate = function useForceUpdate() {
  // eslint-disable-next-line react/hook-use-state
  var _useState = useState(0),
    _useState2 = _slicedToArray(_useState, 2),
    setValue = _useState2[1];
  return function () {
    return setValue(function (value) {
      return value + 1;
    });
  };
};

export { useForceUpdate as default };
//# sourceMappingURL=useForceUpdate.js.map
