I’m trying to figure out how to best implement AJAX responses for
app/views/messages/create.es6.erb) can only be managed by Sprockets? Does this mean SJRs are on the way out, or that Webpacker can handle SJRs?
I also read here that new things are coming to address how Basecamp approaches JS in 2020 (incl. a Turbolinks 6 release).
So what is the current and upcoming “omakase” pattern to render AJAX ES6 form responses? Should I just go for temporary solutions for now while we wait for announcements?
(For more context: I took over a Rails 4.2 app which has since been upgraded to 6, and I’m trying to figure out how to add
form_with forms with remote AJAX calls, while being able to use ES6. The app doesn’t yet have Turbolinks, hopefully will be added after more regression testing, but now has Webpacker. It still needs to be upgraded from Sprockets 3 to 4, so the Sprockets JS doesn’t handle ES6 yet, and I don’t yet know whether it should or if all JS should move to Webpacker.)