Skip to content

Commit

Permalink
fix: depenency array of react-langgraph useLangGraphMessages hook (#1008
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Yonom authored Oct 14, 2024
1 parent fa9a441 commit 359db5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/gold-spies-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@assistant-ui/react-langgraph": patch
---

fix: depenency array of react-langgraph useLangGraphMessages hook
4 changes: 2 additions & 2 deletions packages/react-langgraph/src/useLangGraphMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export const useLangGraphMessages = <TMessage>({
// throw new Error("A partial message was not marked as complete");
// }
},
[stream],
[messages, stream],
);
console.log("messages", messages);

return { messages, sendMessage, setMessages };
};

0 comments on commit 359db5c

Please sign in to comment.