Debug connect/disconnect events

@Stav will give that a shot to get the stack trace.

@sam I am not using Turbolinks.
Rather, I have I have an outer modal element (foundation reveal) that I believe gets moved to the bottom of the body.
The modal is a jquery plugin that does some DOM operations with the outer element; so, I made the child element be a stimulus controller instead.

I was able to use this approach in one instance, but it’s causing an infinite loop of connecting/disconnecting until the browser crashes.

I may have to look at the source code of the foundation zurb plugin… but, my assumption was that the plugin just moves the content of the modal to another part of the body and initializes it with the overlay.

<div data-reveal">
  <div data-controller="modal"> 
  </div>
</div>