Khalid Abuhakmeh

Results 38 comments of Khalid Abuhakmeh

Honestly, I forget why I wrote this in the first place. 😅 I'll have to try it again or find the sample somewhere. Please hold as I try this in...

OK, I remember now. I created a sample that shows it working. It's actually a good idea! (I have a couple of those a year). I hope this helps @kfrancis....

Are you attempting colocation at a top level Razor element (View, Razor Page Razor component)? This will not work with partials.

I'm not sure what to tell you at this point, without seeing your solution :(

Well... damn. Sorry folks. Thanks, @AlexZeitler, for catching that.

I've updated the code above for brave souls who don't read below the big fancy code blocks.

![Arc -2024-05-29 -09-46-03](https://github.com/egil/Htmxor/assets/228256/eda45343-3f6a-4d5b-ad4f-401294242b10) This might be a quirk of Razor and `null` values (null values are not rendered on elements). Setting an `hx-` element to an empty string defaults the...

I would recommend `OutputCache` only be applied on non-mutating HTTP methods like `GET` which also don't require anti-forgery tokens. For mutating endpoints/functions (`POST`, `PUT`, and `DELETE`), folks should rely on...