Skip to content

rfc: polling is the element's lifetime - #4049

Draft
manwithacat wants to merge 1 commit into
bigskysoftware:four-devfrom
manwithacat:rfc/polling-lifetime
Draft

rfc: polling is the element's lifetime#4049
manwithacat wants to merge 1 commit into
bigskysoftware:four-devfrom
manwithacat:rfc/polling-lifetime

Conversation

@manwithacat

Copy link
Copy Markdown
Contributor

Description

RFC: polling is the element's lifetime. No cancelPolling API. HTTP 286 stays a no-op.

Discussion: #4048
Corresponding issue: #4040

Pins current four-dev behavior and writes the hypermedia rule down:

  • 286 does not stop every
  • innerHTML leaves the poller in the DOM, so every continues
  • outerHTML without every stops
  • HX-Reswap: outerHTML of a triggerless copy stops an innerHTML poller

Docs (docs, hx-trigger, polling pattern, what’s-new), upgrade-check for 286-next-to-poll, 2→4 skill.

Draft until the discussion lands. Easy to close if the room wants 286 in core.

Checklist

Pin the htmx 4 rule: an every trigger is armed on a node and cleared
when that node leaves the DOM. HTTP 286 is a no-op. innerHTML cannot
self-stop; outerHTML / outerMorph / HX-Reswap: outerHTML of a
triggerless copy can.

No cancelPolling API. Related: bigskysoftware#4040.
@1cg

1cg commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

hey @manwithacat you are going a little fast right now, we are trying to get the issues and PRs down and discussing things on the team discord

you mind holding off a bit on multiple issues/PRs until we have some time to talk as a team? You can jump on the discord if you want to join in the conversation

@manwithacat

Copy link
Copy Markdown
Contributor Author

@1cg no probs. i've been having a lot of success with the htmx4 beta so I've got a bit of a backlog of local fixes that seem to be relevant to issues that are cropping up.

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.

2 participants