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 am new to redux-toolkit query and also new to websocket APIs, and I am trying to get a stream of data from a websocket API and store it in a redux store.
I have read the documentation for createApi and useQuery, but I am still having difficulty understanding this part.
Here is the message structure that the websocket API gets:
This discussion was converted from issue #3033 on December 26, 2022 23:31.
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am new to redux-toolkit query and also new to websocket APIs, and I am trying to get a stream of data from a websocket API and store it in a redux store.
I have read the documentation for createApi and useQuery, but I am still having difficulty understanding this part.
Here is the message structure that the websocket API gets:
}
is this code should do the work?
and if it is, how can i use it? when i try using useStreamMessagesQuery in some components its undefined and not a function.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions