Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
0.23.1
-
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.