Replies: 1 comment
-
Delete discussion |
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
-
I've implented optimistic update but I've having problems with multiple quick cache updates.
I have an endpoint that toggles an active flag on an item. Because I need to update the switch the user clicked on upon toggling the active state I need to update it quickly because otherwise it feels sluggish and slow.
So I actually want to skip step 5 because I consider that result stale. Will RTK let me do this in some way?
Here's what happening visually.
![Animation (2)](https://user-images.githubusercontent.com/4553604/174764180-d37b759c-cc0e-4bd7-97fc-f6eac1cea451.gif)
Beta Was this translation helpful? Give feedback.
All reactions