about summary refs log tree commit diff
path: root/src/lib/hooks/useToggleMutationQueue.ts
Commit message (Collapse)AuthorAgeFilesLines
* Add a mutation queue to fix race conditions in toggles (#1933)dan2023-11-161-0/+98
* 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