Listen for ajax:success


#1

Can stimulus listen for ajax events like ajax success? I’m looking to replace some jQuery where I’m listening for ajax:success events and doing something after the request completes. I tried using ajax:success-> in the action, but it didn’t fire.


#2

See https://github.com/stimulusjs/stimulus/issues/78


#3

https://medium.com/parallel-thinking/stimulus-rails-remote-forms-ca5b3e2f02ed - looks pretty good