jorgemanrubia / turbolinks_render

Support for `render` with Turbolinks in Rails controllers
MIT License
167 stars 16 forks source link

Dispatch "turbolinks:render" after rendering #57

Open flavio-b opened 3 years ago

flavio-b commented 3 years ago

Dispatches the "turbolinks:render" event after rendering. This can be useful for event listeners that rely on this instead of/ in addition to "turbolinks:load".

I've created a callback that goes into the delegate object. I don't know the internals of Turbolinks, but it seemed like the correct place to go, based on your code.