father::ahook 示例 const [count, setCount] = useState(0); const latestCountRef = useLatest(count); setCount(latestCountRef.current + 1);// 永远是最新的 场景 [beused::保持不变不变的函数]