about summary refs log tree commit diff
path: root/src/lib/hooks/useToggleMutationQueue.ts
Commit message (Collapse)AuthorAgeFilesLines
* Revert "run linter"Samuel Newman2024-03-131-1/+1
| | | | This reverts commit 1512b5cf68e9e92801a894392569b444fd6af1d1.
* run linterSamuel Newman2024-03-121-1/+1
|
* 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