# Stimulus connect() but does not disconnect()

**URL:** <https://discuss.hotwired.dev/t/stimulus-connect-but-does-not-disconnect/4402>\
**Category:** General\
**Created:** [September 3, 2022, 11:14am UTC](https://discuss.hotwired.dev/t/stimulus-connect-but-does-not-disconnect/4402 "2022-09-03T11:14:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hotphp](https://avatars.discourse-cdn.com/v4/letter/h/e47774/32.png) [@hotphp](https://discuss.hotwired.dev/u/hotphp)\
**Post date:** [September 3, 2022, 11:14am UTC](https://discuss.hotwired.dev/t/stimulus-connect-but-does-not-disconnect/4402/1 "2022-09-03T11:14:44Z")

</div>

My stimuls controller runs its `connect()`, but after I clicked on a link to navigate to another page, i.e. turbo drive, its `disconnect()` does not run. No odd messages in my Chrome console.

Any idea how I can troubleshoot why this is happening??

```auto
export default class extends Controller {
  connect() {
    console.log("onconnect->connect()...");
  }
  disconnect() {
    console.log("onconnect->disconnect()...");
  }
}

```

---

<div class="post-metadata">

**Author:** ![hotphp](https://avatars.discourse-cdn.com/v4/letter/h/e47774/32.png) [@hotphp](https://discuss.hotwired.dev/u/hotphp)\
**Post date:** [September 3, 2022, 11:18am UTC](https://discuss.hotwired.dev/t/stimulus-connect-but-does-not-disconnect/4402/2 "2022-09-03T11:18:15Z")

</div>

> [@Change Callback Not Firing as Expected](https://discuss.hotwired.dev/t/change-callback-not-firing-as-expected/4323/2):
>
> I had the same issue in Microsoft Edge. After browser restart it works as intended.

Unbelievable, a restart of my chrome solved it.
