Skip to content

Conversation

@guardrex
Copy link
Collaborator

@guardrex guardrex commented Dec 10, 2024

Fixes #33994

Thanks @adamgf1! 🚀

I'm bringing in Artak's sentiment from the discussion that :get/:set (:set specifically) binding means that you're notified in advance and get a chance to change the bound value. I'm also making a few phrasing changes and other minor updates.

I'm fleshing out the bit about the discarded task when using the get/set accessor approach in multiple component binding scenarios. If devs want to see that, they'll have a link here to take them back to the 6.0 version of the article, where they can study the NestedChild component of that era with its old skool approach ...

private string BoundValue
{
    get => ChildMessage ?? string.Empty;
    set => ChildMessageChanged.InvokeAsync(value);
}

Internal previews

📄 File 🔗 Preview link
aspnetcore/blazor/components/data-binding.md aspnetcore/blazor/components/data-binding

@guardrex guardrex self-assigned this Dec 10, 2024
@guardrex guardrex merged commit bd88edf into main Dec 10, 2024
3 checks passed
@guardrex guardrex deleted the guardrex/multiple-level-binding branch December 10, 2024 18:42
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.

Improve multiple-level binding section introduction

2 participants