mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-17 08:34:54 -04:00
refactor: rename ready function to match its intent
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
354700e973
commit
25ee20c15d
5 changed files with 14 additions and 11 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue