-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for responseKind js/script #48
Comments
Could you maybe return a turbo-stream that contains a I'm just not a huge fan of executing JS returned by the server this way, so I'm a bit hesitant about adding support for it hotwired/turbo#186 (comment) |
@marcelolx Maybe is a good replacement, what are the advantages and disadvantages for each options? |
while moving to turbo-stream may be the ultimate destination, i second the addition of JS support at the mean time because old applications, like the one that i support, still runs on the old JS partials architecture. having the JS support allows me to keep the old code and make the migration more easily. |
If someone is willing to put a PR together, I am happy to review and consider it (I don't have the bandwidth to work on it right now) |
In my project we use ajax to handle request in stimulus and we are trying to update to request.js:
Example:
For this we need this dataType script to execute js files, but in the request.js docs there are only 3 options for responseKind (html, turbo-stream, json). A new script option would be interesting
The text was updated successfully, but these errors were encountered: