Listen for ajax:success

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.

1 Like

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

1 Like

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