Hi I just read Saving and Restoring LiveView State · The Phoenix Files and could someone explain why this is bad idea?
It may even include UI centric things like which tab is active or if a region is expanded. It doesn’t make sense to store state like that.
Don’t store UI related state.
If WebSocket gets disconnected and reconnected state needs to be restored then what is better way than storing active tab or expanded views into browser?