react_on_rails icon indicating copy to clipboard operation
react_on_rails copied to clipboard

React On Rails w/Hotwire and Turbo Streams

Open braindeaf opened this issue 1 year ago • 4 comments

Is there any information how to get React components to render after Turbo Stream updates? I'm got a few components which don't render when our modals update and since turbo don't have a 'after-stream-render' Event. When the modal opens I trigger ReactOnRails.reactOnRailsPageLoaded(); so that's fine but I can't work out how I can trigger this on Turbo Streams.

We are still on 11.3.0 if that makes a difference.

Many thanks :)

braindeaf avatar Nov 14 '22 23:11 braindeaf