Skip to content

config: expose collection options as read-only lists - #114

Merged
rameel merged 1 commit into
mainfrom
config/read-only-list-options
Oct 28, 2026
Merged

rameel merged 1 commit into
mainfrom
config/read-only-list-options

Conversation

@rameel

@rameel rameel commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

ResponseHandling was an IList<T> because a removed <response-handling> Tag Helper appended rules to it, while the other collection options were arrays. All five are now IReadOnlyList<T>.

Configuration JSON is cached until a property is assigned, so adding or replacing items in place was silently ignored after the first render. A read-only list rules that out at compile time, and arrays, lists, and collection expressions can still be assigned.

ResponseHandling was an IList because a removed <response-handling>
Tag Helper appended rules to it, while the other collection options
were arrays. All five are now IReadOnlyList<T>.

Configuration JSON is cached until a property is assigned, so adding
or replacing items in place was silently ignored after the first
render. A read-only list rules that out at compile time, and arrays,
lists, and collection expressions can still be assigned.
@rameel
rameel merged commit 926a2b6 into main Oct 28, 2026
1 check passed
@rameel
rameel deleted the config/read-only-list-options branch October 28, 2026 19:09
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