import { slicedToArray as _slicedToArray } from '../_virtual/_rollupPluginBabelHelpers.js';
import { useState, useCallback } from 'react';

var useForceUpdate = function useForceUpdate() {
  var _useState = useState(),
    _useState2 = _slicedToArray(_useState, 2),
    updateState = _useState2[1];
  var forceUpdate = useCallback(function () {
    return updateState({});
  }, []);
  return forceUpdate;
};

export { useForceUpdate };
