devtools-next icon indicating copy to clipboard operation
devtools-next copied to clipboard

Disconnect no longer detected on reload of inspected page when using /__devtools__/

Open Dykam opened this issue 1 year ago • 0 comments

Somewhere between version 3.2.0 and 3.3.0, devtools stopped trying to reconnect when the inspected page reloads. It appears functional, but most buttons etc. break when trying to interact, as there's no longer an actual session connected.

I've added a minimal demonstration using CodeSandbox, based on the vue-vite template: https://codesandbox.io/p/devbox/divine-hill-38sgyk

Reproduce:

  • Open the main page in a new tab, not in the code-sandbox built-in preview.
  • Wait 5 seconds for devtools to open as pop-up/window (code in App.vue)
  • Reload preview tab (not devtools)

Expected:

  • devtools disconnects and reconnects.

Actual:

  • devtools doesn't disconnect, preview creates new devtools window.

Dykam avatar Jul 04 '24 11:07 Dykam