In which case would you need to memoize the dependency array of useEffect?
You would need to memoize the dependency array of useEffect when it contains object or array references created during render. Without memoization, these objects or arrays would have new references on every render, causing the effect to run more often than necessary. By using useMemo to stabilize these references (e.g., `const stableObj = useMemo(() => ({ key: value }), [value])`), you ensure the effect only runs when the actual data changes, not just when the references change.