Skip to content
This repository was archived by the owner on Dec 26, 2025. It is now read-only.

Conversation

@theumairtahir
Copy link

Added a try-catch block around the InvokeVoidAsync method call to
handle potential ObjectDisposedException exceptions. This ensures
graceful handling of scenarios where the JavaScript runtime might
not be available, such as in a hybrid Blazor Web App environment.
The catch block includes a comment explaining that no action is
needed if this exception occurs.

Fix of issue #594

Umair Tahir added 3 commits January 27, 2025 10:49
…ly to StreamRendering mode)

Added a try-catch block around the InvokeVoidAsync method call to
handle potential ObjectDisposedException exceptions. This ensures
graceful handling of scenarios where the JavaScript runtime might
not be available, such as in a hybrid Blazor Web App environment.
The catch block includes a comment explaining that no action is
needed if this exception occurs.
Moved the try-catch block inside the if statement checking for
non-null _styleFunctions. This ensures the try block is only
executed when _styleFunctions is available and handles
ObjectDisposedException in the same context, improving code
structure and readability.
This commit updates the project's target framework from .NET 8.0 to .NET 9.0, ensuring compatibility with the latest features and improvements.
@Jimmys20
Copy link

Jimmys20 commented Sep 5, 2025

Hello, this also fixes #602. @chrissainty, any chance to get it merged?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants