import { _ as _slicedToArray } from '../slicedToArray-BB-AwwkK.js';
import { useState, useCallback } from 'react';

function useForceUpdate() {
  var _useState = useState(),
      _useState2 = _slicedToArray(_useState, 2),
      setState = _useState2[1];

  var forceUpdate = useCallback(function () {
    setState({});
  }, []);
  return forceUpdate;
}

export { useForceUpdate as default };
