On RenderTreeBuilder, add SetUpdatesAttributeName#11375
Conversation
| /// <para> | ||
| /// This information is used by the rendering system to determine whether | ||
| /// to accept a value update for the other attribute when receiving a | ||
| /// call to the event handler. |
There was a problem hiding this comment.
@SteveSandersonMS - are you concerned that this won't really be possible to do with manual two-way binding?
There was a problem hiding this comment.
Yes, and I'd be happy to discuss this whole design with you next week.
My thought was that later on, we'd also add another parameter to event handlers, e.g., @oninput:updateField="value" (or maybe call it @onevent:syncField or similar) so that it is possible to do this with a manual two-way binding. It would be optional, since it's up to you whether or not the binding enforces consistency synchronously when the event is processed.
I also thought it would be acceptable for this to be a @bind-only feature for preview 7, and maybe longer, since adding @onevent:updateField is not urgent.
This is part of #8204
Because aspnetcore-tooling is a separate repo, we need a three-phase commit:
SetUpdatesAttributeNamein this repoSetUpdatesAttributeName. If we didn't do (1) first, then we'd start getting build errors when the aspnetcore-tooling changes were received here.SetUpdatesAttributeNameand it will actually be used.