refactor: rename ready function to match its intent

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-07-05 21:04:24 +02:00
parent 354700e973
commit 25ee20c15d
5 changed files with 14 additions and 11 deletions

View file

@ -135,7 +135,7 @@ export const EditorPane: React.FC<EditorPaneProps> = ({ scrollState, onScroll, o
const mayEdit = useMayEdit()
useEffect(() => {
const listener = messageTransporter.doAsSoonAsConnected(() => messageTransporter.startSendingOfReadyRequests())
const listener = messageTransporter.doAsSoonAsConnected(() => messageTransporter.markAsReady())
return () => {
listener.off()
}