BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Custom blocks: cleaning up & rerendering vanilla blocks

Open YousefED opened this issue 2 years ago • 0 comments

Couple of leftovers from the Custom Blocks PR:

  • [x] for non-react custom blocks, there's no way to clean up event handlers (react blocks can do this with a normal useEffect
  • [ ] for non-react custom blocks, there's no way to reuse the existing DOM, a new DOM is always created
  • [x] for both react and non-react, this issue prevents proper cleanup: https://discuss.prosemirror.net/t/nodeview-update-and-destroy-methods/5539/3, fixed in https://github.com/TypeCellOS/BlockNote/pull/223

YousefED avatar May 30 '23 12:05 YousefED