Uses useMemo to memoize the deserialization process
Prevents unnecessary re-computations
Handles cases where content might be undefined
Delta Synchronization
Ensures commentDelta always reflects the latest commentBody
"How We Fixed It"
Inconsistent Delta Types: Large texts were causing deserializeDelta to return inconsistent types (strings vs. Delta objects)
Rendering Instability: Inconsistent types would break the Quill editor
State Management: Ensures smooth transitions between different content states.
Solution
Uses useMemo to memoize the deserialization process
Prevents unnecessary re-computations
Handles cases where content might be undefined
Delta Synchronization
Ensures commentDelta always reflects the latest commentBody
Test Plan
Goto any community and write a comment with more than 2k characters and try to edit the comment
Link to Issue
Closes: #9960
Description of Changes
"How We Fixed It"
Inconsistent Delta Types: Large texts were causing deserializeDelta to return inconsistent types (strings vs. Delta objects) Rendering Instability: Inconsistent types would break the Quill editor State Management: Ensures smooth transitions between different content states. Solution Uses useMemo to memoize the deserialization process
Test Plan
Goto any community and write a comment with more than 2k characters and try to edit the comment
https://github.com/user-attachments/assets/d15a7aeb-7666-4ad8-ae05-a17fdc799a1e