You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this conversationApi from where I fetch all user conversations. When user select a conversation the conversation id will be set in url, and message component will fetch the messages. But also, in other components I need to get other informations from the selected conversation. I don t want to pass props to depth (2-3 levels) and I was thinking to get conversation from rtk cache. but my question is how I do that? Should I create another endpoint getConversation or are other ways?
This discussion was converted from issue #4752 on December 05, 2024 15:58.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have this
conversationApi
from where I fetch all user conversations. When user select a conversation theconversation id
will be set in url, and message component will fetch the messages. But also, in other components I need to get other informations from the selected conversation. I don t want to pass props to depth (2-3 levels) and I was thinking to get conversation from rtk cache. but my question is how I do that? Should I create another endpointgetConversation
or are other ways?Beta Was this translation helpful? Give feedback.
All reactions