Can you call useUIState
more than once in different component?
#1977
Replies: 1 comment
-
Nevermind! I forgot I could just pass the messages array from above! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For example, I call the
useUIState
in the main chat app component. I also want to have access to the previous assistant message in myAIMessage
component below. Would this be okay if I calluseUIState
in my <AIMessage/ >` every time a assistant message generates or would it cause a duplicate UI state?Beta Was this translation helpful? Give feedback.
All reactions