Live Chat Icon For mobile
Live Chat Icon

How can I get the event while a page closes in Blazor Server side?

Platform: Blazor| Category: Components

You can get the event using IDisposable interface to invoke the Dispose event on each page navigation or on closing a page. Find the code example for your reference.

@page "/"

@implements IDisposable;

<h1>Hello, world!</h1>

Welcome to your new app.

@code {

    public void Dispose()


Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.