import { useState as a, useEffect as s } from "react";
import { useFormContext as u, useWatch as n } from "react-hook-form";
function f() {
  const [e, o] = a(!1), { control: r } = u(), t = n({
    control: r,
    name: "statusLoad"
  });
  return s(() => {
    t === "ready" && o(!0);
  }, [t]), e;
}
export {
  f as useFormReadyForUpdate
};
