-
-
Notifications
You must be signed in to change notification settings - Fork 867
Description
Before you submit this issue, have you checked the following
- Is this really a problem?
- I have searched the Github Issues for similar issues, but did not find anything.
Affected packages and versions
0.9.4
Reproduction link
Repository: https://github.com/Seecko/UNIVER-ISSUE-RECREATE
Reproduction Steps:
- Setup environment: npm install & npm run dev
- Access https://localhost:7004/
- Select cell A1 and enter the number 1
- Select cell B1 and enter the formula '=A1'
- Copy cell B1 and paste in cell B2
- Select cell A2 and enter the number 2
- Click SAVE → stores workbook data via workbook.save() to localStorage
- Click LOAD to recreate univer
- Modify the indication of cell A2, and ensure that cell B2 is displayed correctly
- Quickly click LOAD multiple times (e.g. 30 times within 8 seconds)
- The formulas for cells B1 and B2 are invalid. If cells A1 and A2 are modified multiple times, the content of cells B1 and B2 will change incorrectly
Expected behavior
Whenever cells A1 and A2 are modified, cells B1 and B2 can be displayed correctly
Actual behavior
The content of cells B1 and B2 changed incorrectly.
I tried to dispose of everything that could be disposed of before recreating the univer (as can be seen in the 77 line commented out code in the src/views/energyCheckup/checkupReport/indexes.vue file), which caused the univer on the page to fail to load and only a blank container to load. I believe this is my usage error. I should wait until all asynchronous processes of 'dispose' are completed before recreating the univer. However, I don't know when 'dispose' will be executed. If there are any related APIs, please provide me with guidance.
System information
System:
OS: Windows 10 10.0.19045
CPU: (12) x64 Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
Memory: 3.53 GB / 15.84 GB
Binaries:
Node: 18.20.5
npm: 10.8.2
pnpm: 9.10.0
Browsers:
Chrome: Chromium (136.0.7103.114)