dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
34.91k stars 9.86k forks source link

[Blazor] Restore client-side state after failing to reconnect to the circuit #56678

Open MackinnonBuck opened 2 weeks ago

MackinnonBuck commented 2 weeks ago

As part of the changes in https://github.com/dotnet/aspnetcore/pull/55723, Blazor Server apps will automatically reload the page during reconnection if the underlying circuit no longer exists. We should consider enhancing this experience further by automatically restoring client-side state.

This would likely include user input for the following HTML elements:

However, this does not include restoring server-side state, as that is tracked by #30344

konradbartecki commented 2 weeks ago

By the way this was done in my PR of https://github.com/dotnet/aspnetcore/pull/32122

It gave an opt-in possibility for clients to automatically reload the page once a rejected circuit was detected.