Skip to content

http: replace nullable Boosted with HtmxRequestKind - #70

Merged
rameel merged 3 commits into
mainfrom
htmx-request-kind
Oct 4, 2026
Merged

rameel merged 3 commits into
mainfrom
htmx-request-kind

Conversation

@rameel

@rameel rameel commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

Changing Boosted from bool to bool? introduced an overlooked limitation:
nullable types cannot be used as attribute arguments, causing CS0655.

Replace Boosted with Kind and HtmxRequestKind. The enum keeps all three options - Any, Boosted, and NonBoosted, and makes the intent clearer.

rameel added 3 commits October 5, 2026 01:43
When Boosted changed from bool to bool?, we missed that nullable types
cannot be used as attribute arguments. Setting Boosted in [HtmxRequest]
then failed with CS0655.

Replace it with Kind and HtmxRequestKind. The enum preserves all three
options and makes the intent clearer: Any, Boosted, or NonBoosted.
@rameel
rameel merged commit 8135e02 into main Oct 4, 2026
1 check passed
@rameel
rameel deleted the htmx-request-kind branch October 4, 2026 21:11
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