Symfony UX/Turbo custom stream actions not firing #3271
Replies: 1 comment
-
|
Disregard, it wasn't working because I was initiating it from a stimulus controller not a form. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm just starting to work with Turbo with Symfony. I'm trying to register a custom stream action so I can kick off a src reload from a stream. I've followed guides that suggest it should be possible, but I'm not able to get it to work.
I have the following in my app.js:
I can confirm in the browser console that the reload_frame command is being attached to the Turbo.StreamActions object:

The following is what I have in my controller:
This is my update_stream.html.twig content:
and I can confirm that it is returning that as the response (and the ID's do exist) with the proper header type, but it does not ever execute my custom action. I put a console log outside the forEach loop in the action just to see if it's firing at all, and it never does. Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions