Skip to content

Blazor change detection too liberal #13610

@harleydk

Description

@harleydk

The change detection seems to me a bit liberal (for lack of a better word). Given a list of N instances of some POCO model, each handed to an individual component, changing just one of them causes the entire set of components to re-render.

I made a fiddle to demonstrate the issue: https://blazorfiddle.com/s/fla3gm2q

200 instances in the list, provided (individually) to 200 sub-components. Changing just the first one causes 200 calls to OnParametersSet - I was hoping for just one.

(Ideally I'd like to be able to update a specific sub-component, but #13358. Pardon me pressing that issue, I mean no offence).

Thank you in advance for your consideration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PerfPriority:2Work that is important, but not critical for the releaseaffected-mediumThis issue impacts approximately half of our customersarea-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-renderingFeatures dealing with how blazor renders componentsseverity-minorThis label is used by an internal tool

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions