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
In the RTK version of the tutorial, addReaction mutation optimistically updates the reaction data in the getPosts cache. But it should also update the cache for getPost(id) query as well. Otherwise, addReaction mutation is not reflected in the SinglePostPage.
I cannot contribute a PR because this version of code doesn't have a corresponding branch (it only has a tag).
In the RTK version of the tutorial,
addReaction
mutation optimistically updates the reaction data in thegetPosts
cache. But it should also update the cache forgetPost(id)
query as well. Otherwise,addReaction
mutation is not reflected in theSinglePostPage
.I cannot contribute a PR because this version of code doesn't have a corresponding branch (it only has a tag).
redux-essentials-example-app/src/features/api/apiSlice.js
Lines 43 to 60 in dcc6064
The text was updated successfully, but these errors were encountered: