(defcomp
  ()
  (~examples/page-content
    :title "Request Abort"
    :description "sx-sync=\"replace\" aborts any in-flight request before sending a new one. This prevents stale responses from overwriting newer ones, even with random server delays."
    :demo-description "Type quickly — only the latest result appears despite random 0.5-2s server delays."
    :demo (~examples/sync-replace-demo)
    :sx-code "(input :type \"text\" :name \"q\"\n  :sx-get \"/sx/(geography.(hypermedia.(example.(api.slow-search))))\"\n  :sx-trigger \"keyup delay:200ms changed\"\n  :sx-target \"#sync-result\"\n  :sx-swap \"innerHTML\"\n  :sx-sync \"replace\"\n  \"Type to search...\")"
    :handler-names (list "ex-slow-search")
    :comp-placeholder-id "sync-comp"
    :wire-placeholder-id "sync-wire"))
