DEV Community

Discussion on: Designing the ultimate (INCLUSIVE) writing tool. [Part 1 - a WYSIWYG in 745 *Bytes*! 😱]

Collapse
 
siddharthshyniben profile image
Siddharth

But if you don't use it, you don't get undoing capabilities anymore

Thread Thread
 
grahamthedev profile image
GrahamTheDev

Undo is not too bad as we can just store the exact state each time there is an update.

Or better yet we can use doc diffing and just store the differences. I have to admit I have no idea which is better!

I think the answer I have at this point is to use it, but build it in a way I can swap it out easily. 🤷‍♂️

Thread Thread
 
siddharthshyniben profile image
Siddharth

Diffing is better if you care about space, which, to be honest, is not a big concern right now, unless you plan to persist them.