Skip to content

MAUI + Blazor | Navigating away / Breaking Circuit causes "generic JS exception" #45112

@David-Moreira

Description

@David-Moreira

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

A user of our library, Blazorise (components for Blazor) reported that when using MAUI + Blazor, by navigating away it causes an unexpected exception on our JS disposal process.

While the exception is explanatory. The same code execution does not throw the same Exception Type as it does on regular Blazor.

On regular Blazor, this is thrown as a JSDisconnectedException (which we have handled accordingly), here we have it thrown as a regular JSException

Screenshot shows both Blazor vs MAUI.
image

Expected Behavior

Expected that the exception thrown is the same as in regular Blazor, JSDisconnectedException

Steps To Reproduce

User that reported the issue shared a minimalistic repo:
https://github.com/realLiangshiwei/MAUIBlazorWithBlazorise

image

Exceptions (if any)

image

.NET Version

No response

Anything else?

User reported issue on our side:
Megabit/Blazorise#4287

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions