rfc: polling is the element's lifetime - #4049
Draft
manwithacat wants to merge 1 commit into
Draft
Conversation
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.
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 |
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
RFC: polling is the element's lifetime. No
cancelPollingAPI. HTTP 286 stays a no-op.Discussion: #4048
Corresponding issue: #4040
Pins current four-dev behavior and writes the hypermedia rule down:
everyinnerHTMLleaves the poller in the DOM, soeverycontinuesouterHTMLwithouteverystopsHX-Reswap: outerHTMLof a triggerless copy stops an innerHTML pollerDocs (
docs,hx-trigger, polling pattern, what’s-new),upgrade-checkfor 286-next-to-poll, 2→4 skill.Draft until the discussion lands. Easy to close if the room wants 286 in core.
Checklist
four-devnpm run test:chrome -- test/tests/attributes/hx-trigger-every.js— 4 passed