#Retaining state between LiveView socket disconnects

2 messages · Page 1 of 1 (latest)

shrewd gulch
#

Are there any recommendations for ensuring state is kept across disconnects?

My first thought is leveraging a DynamicSupervisor, a Registry, and storing the state in a separate GenServer, but is there maybe a better way to do that?

For my specific use case I'm fine with state being lost between server restarts.

timber root
#

Then what you have described is the best approach