mirror of
https://github.com/yattee/yattee.git
synced 2026-07-20 14:22:02 +00:00
Tapping a recent search (or suggestion, or opening a query deep link) mutates the searchable text, which fires the onChange handler that clears results and re-fetches suggestions. That raced against the search Task started by the same tap: on Sequoia the onChange settled last, cancelling the in-flight search and leaving suggestions visible instead of results. Suppress the onChange-driven suggestion fetch for the single programmatic text mutation via a one-shot flag, so the execute paths go straight to results regardless of onChange-vs-Task ordering. Manual typing is unaffected.