diff options
author | dan <dan.abramov@gmail.com> | 2023-11-16 22:01:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 14:01:01 -0800 |
commit | 8475312422579c2c7d2798fcd0ff58009c366690 (patch) | |
tree | a2576ed4e7766aac25d16a74ef802866786ea12e /src/lib/react-query.ts | |
parent | 54faa7e176ed2f8644ef4941c8a65522107a84c1 (diff) | |
download | voidsky-8475312422579c2c7d2798fcd0ff58009c366690.tar.zst |
Add a mutation queue to fix race conditions in toggles (#1933)
* Prototype a queue * Track both current and pending actions * Skip unnecessary actions * Commit last confirmed state to shadow * Thread state through actions over time * Fix the logic to skip redundant mutations * Track status * Extract an abstraction * Fix standalone mutations * Add types * Move to another file * Return stable function * Clean up * Use queue for muting * Use queue for blocking * Convert other follow buttons * Don't export non-queue mutations * Properly handle canceled tasks * Fix copy paste
Diffstat (limited to 'src/lib/react-query.ts')
0 files changed, 0 insertions, 0 deletions