@inherits BlazorPlusComponentBase

There's 2 benefits to inherit BlazorPlusComponentBase :

  • the BlazorSession is injected as Session property , can use it directly , instead of BlazorSession.Current
  • All Exception throwed from event handlers of tags , will be captured into BlazorSession.ExceptionReport , so the connection will not break.

Try the buttons in 'Error handling' section.

Error handling :

In the Providers.cs , public override void ExceptionReport(Exception err) , will show Toast for error and send stacktrace to console log , for Development deployment

An error has occurred. This application may no longer respond until reloaded. Reload 🗙