fix bug where document genserver hasn't started by the time the client connects to its channel

This commit is contained in:
2023-11-25 09:36:28 -05:00
parent 5b97348fb7
commit ad61063c0d
2 changed files with 6 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ defmodule PoexWeb.PadLive do
contents: contents
} = document = Repo.get!(Document, id)
# TODO: do we need to start the server here?
DocumentDynamicSupervisor.start_document_server(document)
# init editor and assigns with latest state from doc