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??
export default class extends Controller {
connect() {
console.log("onconnect->connect()...");
}
disconnect() {
console.log("onconnect->disconnect()...");
}
}