Listening for specific cache updates #5031
Unanswered
turnerhayes
asked this question in
Q&A
Replies: 1 comment
-
The "internal actions" are marked that way because we do reserve the right to change them, but realistically they don't change much. For And yes, the listener API does specifically have a |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have a simple game app for a marble placement game (think something like tic-tac-toe). I use RTK Query to fetch the game object from the server, but I have a Socket.io client that updates the game using
updateQueryData
in response to certain socket messages. I'm trying to create a listener middleware that will respond to any time a new marble is added to the board (a field of the Game object).There are a couple of issues I'm not sure how to address:
Internal actions not part of the public API. Note: These are subject to change at any given time.
Is it "safe" to use this in listener logic?Beta Was this translation helpful? Give feedback.
All reactions