A quick attempt to reproduce the issue at https://discord.com/channels/725789699527933952/1221975245947277443/1221975245947277443
(The issue does not exist under the version of htmx 2 that’s in the latest Kitten. Only one request fires.)
| index.page.js | ||
| README.md | ||
| simple.socket.js | ||
Reproduction attempt for “My websocket submit button is sending the payload twice”
(See https://discord.com/channels/725789699527933952/1221975245947277443/1221975245947277443)
Instructions
- Install Kitten
- Clone this repository
- From the local working copy folder, run
kitten
Hit https://localhost and press the button to see that only one request is being sent.
(Kitten includes htmx-2 and the latest WebSocket extension as well as a couple of additional features that aren’t in mainline htmx-2 yet but those should not affect this. I’d venture to think the issue is not present in htmx-2 and the latest htmx WebSocket extension.)