Fix: Error message: Use 'const' instead. (#13982)

### What problem does this PR solve?

Fix: Linter error message: Use 'const' instead.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Refactor**
* Updated variable declarations across form components, agent utilities,
memory management hooks, and data handling functions to enhance code
consistency and maintainability throughout the application codebase.

* **Style**
* Added ESLint suppressions to document intentional constant-condition
patterns in asynchronous event streaming operations.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
balibabu
2026-04-08 18:13:14 +08:00
committed by GitHub
parent 3064895bbb
commit c0c3287af4
25 changed files with 30 additions and 28 deletions

View File

@@ -259,6 +259,7 @@ export const useSendMessageWithSse = () => {
.pipeThrough(new EventSourceParserStream())
.getReader();
// eslint-disable-next-line no-constant-condition
while (true) {
try {
const x = await reader?.read();

View File

@@ -130,6 +130,7 @@ export const useSendMessageBySSE = (url: string) => {
.pipeThrough(new EventSourceParserStream())
.getReader();
// eslint-disable-next-line no-constant-condition
while (true) {
try {
const x = await reader?.read();