Keeps info like whether comments are expanded, being editing, etc. are preserved when updating the comment tree.