Uploaded image for project: 'Cristal'
  1. Cristal
  2. CRISTAL-737

Improve performance of differential macros rendering in BlockNote

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 0.23.1
    • Editor - Blocknote
    • None
    • Unknown

    Description

      When a macro's editable area is edited inside BlockNote, it forces a re-render on the entire React component. Currently, the re-render behavior is to forcefully replace the entire DOM structure generated from the macro whenever a single element changes in the returned AST.

      This is not desirable for quickly-changing elements as it can have a pretty severe performance penalty, so this should be changed to be more performant.

      One possible approach would be to force idea on all array-like structures in the AST returned by macros, but this would be at the cost of API ergonomics.

      Attachments

        Activity

          People

            ClementEraud Clément Eraud
            ClementEraud Clément Eraud
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: