THE entry-key function for keyed collections — one identity rule shared by the live renderer and the binding resolver, implementing Ash resource identity correctly:
- an authored
key:expression wins when declared; - an Ash resource keys on its FULL primary key — a composite key is the tuple of its values (first-field-only keying collides);
- plain maps fall back to
:id/"id", then ordinal position.
Summary
Functions
Entry key for item at ordinal index, honoring key_eval when present.
Functions
@spec entry_key(term(), non_neg_integer(), AshUi.Patch.Evaluator.t() | nil, term()) :: term()
Entry key for item at ordinal index, honoring key_eval when present.