react-native-rich-editor icon indicating copy to clipboard operation
react-native-rich-editor copied to clipboard

Why are you deprecating getContentHTML

Open gremlin529 opened this issue 3 years ago • 0 comments

I don't understand the benefit of using onChange over getContentHTML if I'm going to implement a form with a save button (or like a chat with a send). If I have to listen to the onChange event that means each character typed or format change will create a new string object, and then make a function call to tell me about it so I can save it off (with a setState, which likely makes a second duplicate underneath). So this is a bunch of allocation and memory copying and function calls that don't need to happen. Instead I could just wait until the user is ready to save the content and query for it. This seems more efficient for both processor and memory use.

gremlin529 avatar Apr 11 '23 17:04 gremlin529