▲ | dsiegel2275 4 days ago | ||||||||||||||||||||||
The offline support story here looks interesting. My Elixir/Phoenix app, which relies heavily on LiveView, has some new "offline" and "low bandwidth" set of requirements. Can Hologram sit alongside the existing routes of a Phoenix app? | |||||||||||||||||||||||
▲ | bartblast 4 days ago | parent [-] | ||||||||||||||||||||||
Yes, absolutely! Hologram can work on top of Phoenix and coexist peacefully with LiveView in the same app. You can have some routes handled by LiveView for server-rendered interactions, and other routes handled by Hologram for client-side interactions that need to work offline or on low bandwidth. The session data is shared between them, so users can seamlessly move between LiveView and Hologram pages while maintaining their authentication state and other session information. This is actually a really nice migration path - you don't have to rewrite your entire app. You can gradually move specific features to Hologram where offline support or instant responsiveness matters most, while keeping LiveView for parts where server-side rendering is enough. For your offline/low bandwidth requirements specifically, Hologram is perfect because once the JavaScript is loaded, all the UI logic runs locally. No more waiting for server roundtrips on every interaction, and the app continues working even when connectivity is spotty. | |||||||||||||||||||||||
|