@htmx_org Humbly apologise to the frontend devs, but SSR as imagined by the js based frontend developers is a mistake. It is like moving the steering wheel to the back of the car. While possible, may not be the most elegant option.
To solve this I came up with this library that uses indexedDB for data storage, broadcast channels for exchanging events and web-locks for electing a leader tab.
In some of my projects I needed to share state across tabs through indexedDb and run tasks in a single tab only (for refreshing tokens regularly and polling some api endpoints without ddosing them)