Skip to main content

recents_clear

Function recents_clear 

Source
pub async fn recents_clear(
    handle: State<'_, RecentsHandle>,
) -> Result<(), AppError>
Expand description

Clear all recent locations and flush the empty list to disk.

Propagates the flush failure so the frontend’s clearMutation.onError can surface it. Previously the flush was swallowed and a disk error would silently leave the on-disk list intact — the next launch would reload the “cleared” entries.