Cody Casterline

Results 185 comments of Cody Casterline

Similarly, I'd love to have a CSS animation play (and finish) only when an element is first added to a page. But, every hx-get causes the animation to re-play. I...

I wasn't using `hx-preserve`, since docs say it: > keep[s] an element unchanged during HTML replacement I've got something like: ```html # Some child elements that do change between requests....

Found a [playground] that can load [this JSON file]: [playground]: https://lassebomh.github.io/htmx-playground/> [this JSON file]: https://gist.githubusercontent.com/NfNitLoop/7035dce06db490b57723daf75410f3a8/raw/85dab54cf532019f08f1311095128ae72bbeafbb/playground.json Nicer file contents, in case that goes away: ```js // server.js on.get("/", (request) => {...

FWIW, it seems that this is the case that the Idiomorph extension was designed for: https://htmx.org/extensions/idiomorph/ Things work as expected when using that plugin. (Though, there were a lot of...

> It seems I can make it work by also applying createZodDto on the sub components @SenneDirkx I'm not sure how you got that working. Can you share an example?...

My new team just asked "Why not TypeBox?" So +1 to having a comparison in the official docs. 😊 (Update): I'll add my own comparison notes as I learn more...

I'd love this too. I end up using this pattern instead: https://github.com/diskuto/diskuto-client/blob/4507837dadd8ea2287b3494563e64d99c6d8d200/src/protobuf/regenerate.ts#L42-L50

[NIP-10] explicitly calls out that the replied-to event should come last. But it also says you should prefer to use marked "e" tags, and explicitly mark events as "root", "reply"...

FWIW, I previously rolled [my own code] that was similar to esbuild-deno-loader, but decided to adopt esbuild-deno-loader to support JSR imports. My loader explicitly only applied to particular kinds of...

I can still reproduce this against [v0.11.0-rc.1](https://jsr.io/@luca/[email protected]). But it looks like that's because #142 isn't included in that release.