E603 Replace unload event with pagehide for sending disconnect beacon from Blazor client by oroztocil · Pull Request #62805 · dotnet/aspnetcore · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Components/Web.JS/src/Boot.Server.Common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async function startServerCore(components: RootComponentManager<ServerComponentD

Blazor.disconnect = cleanup;

window.addEventListener('unload', cleanup, { capture: false, once: true });
window.addEventListener('pagehide', cleanup, { capture: false, once: true });

logger.log(LogLevel.Information, 'Blazor server-side application started.');

Expand Down
Loading
0