Skip to content

Commit

Permalink
refactor(dev-middleware): avoid calling custom message handler on dis…
Browse files Browse the repository at this point in the history
…connect
  • Loading branch information
byCedric committed Mar 6, 2024
1 parent f251a8a commit 2a3831f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/dev-middleware/src/inspector-proxy/Device.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,13 +436,6 @@ export default class Device {
// for unknown pages.
const page: ?Page = this.#pages.get(pageId);

// NOTE(bycedric): Notify the device message middleware of the disconnect event, without any further actions.
// This can be used to clean up state in the device message middleware.
this.#getCustomMessageHandler(
this.#debuggerConnection,
page,
)?.handleDeviceMessage(message);

if (page != null && this.#pageHasCapability(page, 'nativePageReloads')) {
return;
}
Expand Down

0 comments on commit 2a3831f

Please sign in to comment.