dream-num / univer

Univer is an open-source alternative to Google Sheets, Slides, and Docs

Home Page:https://univer.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Data Rendering Issue After Switching Sheets and Deleting 'sheet-02' Tab

congxiaobai opened this issue · comments

在您提交此问题之前,您是否检查了以下内容?

  • 这真的是个问题吗?
  • 我已经在 Github Issues 中搜索过了,但没有找到类似的问题。

受影响的包和版本

0.1.14

复现链接

https://github.com/congxiaobai/ubiver-sheet-error

预期行为

1.切换到'sheet-02'页签
2. 删除'sheet-02'页签
3. 期望切换到'sheet-01'页签,并保证数据渲染正确

实际行为

切换到了'sheet-01'页签,但是数据渲染不正确。没有进行重绘。

运行环境

No response

系统信息

System:
OS: macOS 14.5
CPU: (8) arm64 Apple M1
Memory: 126.83 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v18.17.0/bin/yarn
npm: 9.6.7 - ~/.nvm/versions/node/v18.17.0/bin/npm
pnpm: 9.0.6 - ~/.nvm/versions/node/v18.17.0/bin/pnpm
Browsers:
Edge: 126.0.2592.56
Safari: 17.5

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Origin Title: [Bug] Data Rendering Issue After Switching Sheets and Deleting 'sheet-02' Tab

Title: [Bug] Data Rendering Issue After Switching Sheets and Deleting 'sheet-02' Tab


Before you submitted this question, did you check the following?

  • Is this really a problem?
  • I've searched Github Issues but haven't found any similar issues.

Affected packages and versions

0.1.14

Recurrence link

https://github.com/congxiaobai/ubiver-sheet-error

Expected behavior

  1. Switch to the 'sheet-02' tab
  2. Delete the 'sheet-02' tab
  3. Expect to switch to the 'sheet-01' tab and ensure that the data is rendered correctly.

Actual behavior

I switched to the 'sheet-01' tab, but the data was not rendered correctly. No redrawing occurs.

Running environment

No response

system message

System:
OS: macOS 14.5
CPU: (8) arm64 Apple M1
Memory: 126.83 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v18.17.0/bin/yarn
npm: 9.6.7 - ~/.nvm/versions/node/v18.17.0/bin/npm
pnpm: 9.0.6 - ~/.nvm/versions/node/v18.17.0/bin/pnpm
Browsers:
Edge: 126.0.2592.56
Safari: 17.5

commented

Our DI library currently does not support React's strict mode.

import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.tsx'

ReactDOM.createRoot(document.getElementById('root')!).render(
-  <React.StrictMode>
    <App />
-  </React.StrictMode>,
)

https://github.com/congxiaobai/ubiver-sheet-error
I Delete StrickMode code。 But it still happens。

commented

It seems we need to confirm this issue. @Dushusir

Thank you for your feedback. Version 0.1.16 has fixed this. If you still have problems, please reopen the issue