Reputation: 437
If some element inside a Razor component is updated by code, will the whole component re-render, or only the affected parts?
Upvotes: 0
Views: 1014
Reputation: 273179
will the whole component re-render, or only the affected parts?
When an event triggers on a Component then the whole component will be re-rendered in Blazors render-tree and the differences will be applied to the Browsers DOM.
What happens with sub-components depends on the parameters. When there are changed values or complex-type parameters then the sub-component will re-render too.
Upvotes: 2