MaxP
MaxP

Reputation: 437

Will Blazor always re-render the whole component?

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

Answers (1)

Henk Holterman
Henk Holterman

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

Related Questions