defdelegate is just a macro replace typing out the following
@doc delegate_to: {SpecificComponents, :account, 1}
def account(assigns) do
SpecificComponents.account(assigns)
end
Nothing here creates’s attrs or slots for OverallComponents.account/1. I’m not sure if the live view compiler could make use of the doc metadata.
Personally I’d argue that this seems like useless complexity. Why not use the SpecificComponents one directly. No indirection and no need to search around where the actual code is. The docs the LSP shows will be correct and so on.






















