For some reason, my controller is being initialized twice.
At the moment, there is only one item on the page that uses this controller, but if I log when
initialize is run, then I see two messages.
What could be causing this?
The reason for my concern is that some HTML is modified so if the controller initializes more than once, the markup is modified multiple times…
Any ideas how to prevent this from happening?
Also, I have seen a similar topic here but I am not using Turbolinks so that is not the issue.