Turbo 8 refresh and "permanent" matches

I have a page that I want to refresh via Turbo::StreamsChannel.broadcast_refresh_later_to
On this page I have “collapsable” element (using bootstrap for that) meaning that the state of collapsable block is preserved as a class on given “div”.

I didn’t find a way to preseve the collaspable element state (open or hidden) but with refreshed content inside. When I use data-turbo-permanent on it, the collapsable state is preserved, but the contents are not updated.

Is it somehow possible to “disable refreshes” only on given node but resume it inside?

1 Like