fix bug where document genserver hasn't started by the time the client connects to its channel
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user