Skip to content

useChat hook in GenUI component not shared with main MyAssistant's useChat #1204

Closed Answered by Yonom
jackgurae asked this question in Q&A
Discussion options

You must be logged in to vote

Pass in the same id to both useChat calls to share the state

https://sdk.vercel.ai/docs/reference/ai-sdk-ui/use-chat#id

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jackgurae
Comment options

@Yonom
Comment options

Answer selected by Yonom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants