But if you don't use it, you don't get undoing capabilities anymore
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. 🤷♂️
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.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
But if you don't use it, you don't get undoing capabilities anymore
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. 🤷♂️
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.