Thank you for clearing about being strictly server-side. You’re right about that.
But my question is still not answered.
I’m aware of Elixir-desktop and I follow its progress constantly. In fact, its example todo app illustrates what I’m curious about, albeit in a slightly different domain.
The todo app runs offline (desktop/mobile in this case) and manages its local state successfully.
Imagine the fictitious app developer adding a Phoenix backend to allow users to synchronize their todos across devices.
Can the server-side state be accessible to the app via WebSockets while the local copy takes over when there’s no connection, with both syncing when the connection is restored?
Returning to the web-browser based UI, the features I think are missing for LiveView to support the behaviour I described are:
- Being able to keep state on the client-side to be used during disconnections
- Being able to sync the local and server-side state after reconnection
These are the things that I’m wondering if they’re in the pipeline.