Closed Gulivertx closed 1 year ago
Hmm, if you add console.log(this.component)
after the this.component =
line in your controller, do you see the controller instance?
Hello Ryan, Thank's for your reply.
Yes, I see it...
EDIT : for info, my live-component is inside a turbo-frame, could be the problem ?
Hmm.
EDIT : for info, my live-component is inside a turbo-frame, could be the problem ?
Hmm, it's possible? I can't think of why this would create a problem - but does removing it make a difference?
So, to be clear, after your component re-renders (i.e. after you change some model or submit a LiveAction), your render:finished
callback isn't hit? I'd focus on debugging that one first (vs connect
) as it's a bit easier tor repeat/trigger. I'm not sure what could be going wrong.
I close this. Thank's for your help. For this live-component I finally not used custom stimulus controller and did not investigate anymore.
But I now use component listeners in another live-components and it works as expected. I don't know why it was not working on this...
Hello,
I tried to use live component javascript hooks from custom stimulus controller without any success. It seems that the hook is not fired from stimulus controller.
On my twig component I added my custom controller
And here my medisupport-sync_controller.ts
I should get a console.log on connect and on render finished, but I do not have any thing. Any ideas ?
EDIT : I used live-component 2.10 (current last version)