We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to be able send some dynamic query params as part of an sse request like so:
<div hx-ext="sse" sse-connect="/events" hx-vals="js:{dynamicValue: foo()}>
But the hx-vals are not included in the eventsource connect:
htmx-extensions/src/sse/sse.js
Lines 178 to 185 in ba3d167
Lines 191 to 192 in ba3d167
Only the value of sse-connect is used
sse-connect
The text was updated successfully, but these errors were encountered:
The same issue also applies to the ws extension.
Sorry, something went wrong.
I had a similar problem with WebSockets extension. Try changing single quotes to double quotes.
This did not work for me: hx-vals="{'a': 'b'}"
hx-vals="{'a': 'b'}"
But this one worked: hx-vals="{"a": "b"}"
hx-vals="{"a": "b"}"
No branches or pull requests
I want to be able send some dynamic query params as part of an sse request like so:
But the hx-vals are not included in the eventsource connect:
htmx-extensions/src/sse/sse.js
Lines 178 to 185 in ba3d167
htmx-extensions/src/sse/sse.js
Lines 191 to 192 in ba3d167
Only the value of
sse-connect
is usedThe text was updated successfully, but these errors were encountered: