UI panel with React `useEffect` hook can't call `editDocument`

Unfortunately, editDocument() locks the UI until resolved (cf. my comment at Debouncing input events in panels - #7 by pklaschka)…