Skip to content

Remove StopPolling API - #44

Merged
rameel merged 1 commit into
mainfrom
remove-stop-polling
Aug 31, 2026
Merged

Remove StopPolling API#44
rameel merged 1 commit into
mainfrom
remove-stop-polling

Conversation

@rameel

@rameel rameel commented Aug 31, 2026

Copy link
Copy Markdown
Owner

HTMX 4.x no longer treats HTTP 286 as a special signal to stop polling.
Keeping StopPolling would therefore suggest that it works across supported HTMX versions, while it has no effect with HTMX 4.x.

Remove the misleading convenience API and document the supported, version-independent way to stop polling: replace the polling element with a terminal response that omits its polling attributes.

For applications that deliberately target HTMX 1.9/2.x, HTTP 286 can still be set manually.

HTMX 4 no longer treats HTTP 286 as a special signal to stop polling.
Keeping StopPolling would therefore suggest that it works across
supported HTMX versions, while it has no effect with HTMX 4.

Remove the misleading convenience API and document the supported,
version-independent way to stop polling: replace the polling element
with a terminal response that omits its polling attributes.

For applications that deliberately target HTMX 1.9/2.x, HTTP 286 can
still be set manually.
@rameel
rameel merged commit 6d05d3a into main Aug 31, 2026
1 check passed
@rameel
rameel deleted the remove-stop-polling branch August 31, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant