Use chatRef to hold stable reference to useChat return value, avoiding stale closure issues and satisfying react-hooks/exhaustive-deps rule. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| desktop | ||
| mobile | ||
| web | ||
Use chatRef to hold stable reference to useChat return value, avoiding stale closure issues and satisfying react-hooks/exhaustive-deps rule. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| desktop | ||
| mobile | ||
| web | ||