[PR #1802] [MERGED] fix(sdk): resolve React "Maximum update depth exceeded" warning by batching updates in a macrotask #1739

Closed
opened 2026-02-15 20:16:40 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/1802
Author: @dqbd
Created: 12/1/2025
Status: Merged
Merged: 12/2/2025
Merged by: @dqbd

Base: mainHead: dqbd/sdk-react-throttle


📝 Commits (4)

  • 842b290 fix(sdk): resolve React "Maximum update depth exceeded" warning by batching updates in a macrotask
  • ced3979 Add changeset
  • f3885d1 Fix tests for removal
  • d5c898f Disable throttling by default

📊 Changes

6 files changed (+56 additions, -25 deletions)

View changed files

.changeset/great-masks-design.md (+5 -0)
📝 libs/sdk-validation/src/tests/stream.test.tsx (+5 -20)
📝 libs/sdk/src/react/stream.custom.tsx (+4 -1)
📝 libs/sdk/src/react/stream.lgp.tsx (+4 -1)
📝 libs/sdk/src/react/types.tsx (+10 -0)
📝 libs/sdk/src/ui/manager.ts (+28 -3)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langgraphjs/pull/1802 **Author:** [@dqbd](https://github.com/dqbd) **Created:** 12/1/2025 **Status:** ✅ Merged **Merged:** 12/2/2025 **Merged by:** [@dqbd](https://github.com/dqbd) **Base:** `main` ← **Head:** `dqbd/sdk-react-throttle` --- ### 📝 Commits (4) - [`842b290`](https://github.com/langchain-ai/langgraphjs/commit/842b290afa62142d3cb9918dd840acea080e07be) fix(sdk): resolve React "Maximum update depth exceeded" warning by batching updates in a macrotask - [`ced3979`](https://github.com/langchain-ai/langgraphjs/commit/ced39793d10aba6911489d1b9f71d58900537605) Add changeset - [`f3885d1`](https://github.com/langchain-ai/langgraphjs/commit/f3885d14d74f63dc875a45e4e6c3f880c953a511) Fix tests for removal - [`d5c898f`](https://github.com/langchain-ai/langgraphjs/commit/d5c898f0bfce819047e05144d0d2704ee70786f6) Disable throttling by default ### 📊 Changes **6 files changed** (+56 additions, -25 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/great-masks-design.md` (+5 -0) 📝 `libs/sdk-validation/src/tests/stream.test.tsx` (+5 -20) 📝 `libs/sdk/src/react/stream.custom.tsx` (+4 -1) 📝 `libs/sdk/src/react/stream.lgp.tsx` (+4 -1) 📝 `libs/sdk/src/react/types.tsx` (+10 -0) 📝 `libs/sdk/src/ui/manager.ts` (+28 -3) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 20:16:40 -05:00
yindo closed this issue 2026-02-15 20:16:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#1739