Closed zmitic closed 3 years ago
Hey @zmitic!
Thanks for the very detailed report! This looks legit - it looks like we're missing some tracking to not re-register the lazy controllers. I'm checking into it right now :).
Cheers!
Fixed in #28!
Thank you, that was super fast. Will you tag it or do I use dev-master?
We will tag it tomorrow (Sunday) :)
I am using latest bridge and even default
hello_controller.js
can be used to replicate bug.For HTML like this:
and
hello_controller.js
like this:each block is instantiated twice:
If I add third:
each is loaded 3 times:
Problem is gone if I remove
/* stimulusFetch: 'lazy' */
or there is only 1 controller.I followed all the steps from upgrade docs to make sure I don't mess anything (I am noob when it comes to JS).