# 問題
直接先看問題,原本照下方程式碼這樣子去調用 fetchCustomerData() 的話,會出現 React Hook useEffect has a missing dependency: 'fetchCustomerData'. Either include it or remove the dependency array. 的警告訊息
...
useEffect(() => {
fetchCustomerData();
}, [customerId]);
const fetchCust
# 問題
GSAP target .page-title not found. https://gsap.com Error Component Stack
at BlogPostList (blog-post-list.tsx:15:19)
at div (<anonymous>)
at div (<anonymous
以上這類錯誤發生的主因是 GSAP 嘗試在 DOM 元素完全渲染到頁面之前對其進行動畫處理
原本會導致錯誤發生的程式碼:
useGSAP(() => {
// 頁面載入時的