"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useUpdate = void 0;
const react_1 = require("react");
const useUpdate = (callback) => {
    const [, setCount] = (0, react_1.useState)(0);
    return () => {
        setCount((count) => count + 1);
        callback?.();
    };
};
exports.useUpdate = useUpdate;
//# sourceMappingURL=useUpdate.js.map