import { useEffect, useRef } from "react"; // Auto-refresh driver. The callback receives whether a