Skip to content

fix(reuse): make sure all dispose and close sequences are executed#19572

Merged
dgozman merged 1 commit intomicrosoft:mainfrom
dgozman:fix-dispose-reuse
Dec 19, 2022
Merged

fix(reuse): make sure all dispose and close sequences are executed#19572
dgozman merged 1 commit intomicrosoft:mainfrom
dgozman:fix-dispose-reuse

Conversation

@dgozman
Copy link
Copy Markdown
Collaborator

@dgozman dgozman commented Dec 19, 2022

  • When disposing recursively, only the root dispatcher received _dispose() call, while some dispatchers need _onDispose() to clean things up.
  • When reusing the context, pages should be notified with _onClose() so that all client-side waiting promises could reject.

Fixes #19216.

- When disposing recursively, only the root dispatcher received
  `_dispose()` call, while some dispatchers need `_onDispose()`
  to clean things up.
- When reusing the context, pages should be notified with `_onClose()`
  so that all client-side waiting promises could reject.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] .route() causes browser issues and fails test in vscode but ok on CI

2 participants