Broadcasting Turbo refresh adds an extra round trip and a debounce delay. Broadcasting the content directly fixes that, but introduces a race condition. Here's how to keep fast, immediate updates without race conditions: radan.dev/articles/tur...
radan.devWhen broadcasting a Turbo refresh is not enough: faster UX with versioned immediate updatesThe simplest way to make a page collaborative with Hotwire and Rails is to subscribe to changes and broadcast a refresh when relevant models update.
1 repost3 likes