Before you submit this issue, have you checked the following
[X] Is this really a problem?
[X] I have searched the Github Issues for similar issues, but did not find anything.
Affected packages and versions
0.1.17
Reproduction
generate a document using
document1 = univer.createUnit(UniverInstanceType.UNIVER_DOC, {});
generate a second document using
document2 = univer.createUnit(UniverInstanceType.UNIVER_DOC, {});
make changes to document2
apply changes from document2 to document1 using
document1.reset(document2.snapshot)
Expected behavior
The browser displaying document1 should reflect the data that is included in the snapshot passed to reset()
Actual behavior
The document does not change visually. Once changes are applied via manual typing, both those changes, and the changes passed to reset() are suddenly applied.
Before you submit this issue, have you checked the following
Affected packages and versions
0.1.17
Reproduction
document1 = univer.createUnit(UniverInstanceType.UNIVER_DOC, {});
document2 = univer.createUnit(UniverInstanceType.UNIVER_DOC, {});
document1.reset(document2.snapshot)
Expected behavior
The browser displaying document1 should reflect the data that is included in the snapshot passed to reset()
Actual behavior
The document does not change visually. Once changes are applied via manual typing, both those changes, and the changes passed to reset() are suddenly applied.
System information
Running in electron on Ubuntu 22.04.4