Skip to content

How to intercept oninitialized and onafterrender in each blazor component ? #42581

@gjpsiqueira

Description

@gjpsiqueira

Hi guys! I'm currently working on Blazor Server project. I need to create a spinner indicator to my user when the component it is changed (route). So, I think to create a component and call it in OnInitialize then stop in OnAfterRender. I would like to make in each component of my project automatically, without have that make manually.

How I do ?
Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions