import { __read as c } from "../../../../tslib/tslib.es6.es.js";
import a from "../../../../framesync/dist/es/index.es.js";
import { useState as f, useCallback as t } from "react";
import { useIsMounted as s } from "./use-is-mounted.es.js";
function v() {
  var n = s(), r = c(f(0), 2), e = r[0], u = r[1], o = t(function() {
    n.current && u(e + 1);
  }, [e]), d = t(function() {
    return a.postRender(o);
  }, [o]);
  return [d, e];
}
export {
  v as useForceUpdate
};
//# sourceMappingURL=use-force-update.es.js.map
