mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Rapidly switching filter chips, sort columns, or pagination on the devices and notifications lists could overlap fetches, and an older response landing after a newer one would silently overwrite the list with results that no longer match the active query. Thread an optional CancelToken into listDevices and listNotifications. Each State now keeps one active token, cancels it on every new fetch and on dispose, and bails from both success and catch branches when its token has been superseded. DioExceptionType.cancel is silenced so internal cancellations don't surface as user-visible errors. The notifications list's prior `if (_isLoading) return;` guard is removed so the 1-min periodic refresh is no longer skipped during user activity. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>