mirror of
https://github.com/stablyai/orca.git
synced 2026-10-01 16:02:03 +00:00
fix(renderer): dispose desync sentinel listener on HMR
This commit is contained in:
@@ -118,3 +118,12 @@ function removeClickListener(): void {
|
||||
clickListener = null
|
||||
}
|
||||
}
|
||||
|
||||
if (import.meta !== undefined && import.meta.hot) {
|
||||
// Vite can replace this module without a full renderer reload. Remove the
|
||||
// opt-in gesture hook so dev sessions do not retain stale pane closures.
|
||||
import.meta.hot.dispose(() => {
|
||||
removeClickListener()
|
||||
stopRenderDesyncSampleBurst()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user