Skip to content

Refine the HX-Location options API - #37

Merged
rameel merged 14 commits into
mainfrom
typed-ajaxcontext-values
Aug 29, 2026
Merged

Refine the HX-Location options API#37
rameel merged 14 commits into
mainfrom
typed-ajaxcontext-values

Conversation

@rameel

@rameel rameel commented Aug 29, 2026

Copy link
Copy Markdown
Owner

No description provided.

@rameel rameel changed the title typed ajaxcontext values Typed AjaxContext.Values Aug 29, 2026
@rameel rameel changed the title Typed AjaxContext.Values Refine the HX-Location options API Aug 29, 2026
rameel added 8 commits August 30, 2026 00:22
Remove Event and Handler from HtmxLocationOptions. HX-Location is
transported as JSON, while htmx.ajax expects event to be a live browser
Event instance and handler to be a callable JavaScript function.

Serializing either value as a string cannot recreate the expected
runtime object. HTMX 1.x and 2.x invoke handler directly, while HTMX 4.x
no longer supports the handler option.
@rameel
rameel merged commit 3d9a14e into main Aug 29, 2026
1 check passed
@rameel
rameel deleted the typed-ajaxcontext-values branch August 29, 2026 21:12
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