-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[Blazor] Disconnect alternative proposal #39409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Thanks for contacting us. We're moving this issue to the |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
@javiercn are you still interested in us pursuing this proposal? |
I'm closing assuming the answer is "no". If you disagree, please reopen and move to the .NET 9 PLanning milestone. |
Based on #39370
We currently do this within the unload event because that's when we know the page is going to be terminated. As @TanayParikh points out this event isn't raised in some scenarios (closing a tab, mobile user switches apps, etc.) and the circuit remains disconnected for the default reconnection grace period instead of being fully terminated.
We could potentially do better in this scenario by changing the approach into a "soft" disconnect. The way this works is as follows:
This gives us a bit more flexibility as normally, given the
unload
event is unreliable, we at least get to be notified in other cases. As @TanayParikh mentions, visibilitychange might be another option. (For example, if the visibility changes right before loosing the connection)The text was updated successfully, but these errors were encountered: