Skip to content

Fix htmx 2 to 4 event migration mappings - #4128

Open
jay23606 wants to merge 1 commit into
bigskysoftware:four-devfrom
jay23606:fix-upgrade-event-mappings
Open

jay23606 wants to merge 1 commit into
bigskysoftware:four-devfrom
jay23606:fix-upgrade-event-mappings

Conversation

@jay23606

@jay23606 jay23606 commented Oct 9, 2026

Copy link
Copy Markdown

The htmx 2-to-4 migration materials incorrectly map htmx:load and htmx:afterOnLoad to htmx:after:init. In htmx 4, htmx:load is covered by htmx:after:process (also used by htmx.onLoad()), while htmx:afterOnLoad corresponds to htmx:after:request, which fires after the response arrives and before the swap. Update the upgrade guide, reference table, and migration checker to give accurate replacements.

Fixes #4103.

Validation: ran the migration checker against a sample using both legacy event names and confirmed it recommends the corrected replacements.

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