verbum icon indicating copy to clipboard operation
verbum copied to clipboard

fix: useEffect to set editor.tsx#isEditable

Open ICEDLEE337 opened this issue 7 months ago • 0 comments

Current behavior: Externally changing the value of isEditable doesn't trigger a re-render and editor remains in same state.

**New behavior ** Externally changing the value of isEditable triggers a re-render and editor responds appropriately.

Context For example, it may be desireable for consuming code to lock the editor until a "Checkout for editing" button is clicked upon which server-side state reflects the fact that a specific user is currently editing the content as a primitive way of preventing merge conflicts.

ICEDLEE337 avatar Jul 21 '24 19:07 ICEDLEE337