Skip to content

重启后已经存在的页签动态加载失效 #5255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
ZinYY opened this issue Jun 20, 2022 · 6 comments
Closed
1 task done

重启后已经存在的页签动态加载失效 #5255

ZinYY opened this issue Jun 20, 2022 · 6 comments
Assignees
Labels
Milestone

Comments

@ZinYY
Copy link

ZinYY commented Jun 20, 2022

该问题是否已经被报告过了? Is there an existing issue for this?

  • 我已经搜索了 Issues,没有发现类似问题
    I have searched the existing issues

描述问题 Describe the problem

在升级到v2.0.22 版本后,长文档的输入非常卡顿。经过观察,发现只有第一个打开的文档的懒加载机制生效了 (只渲染当前打开的section);而其他文档的大纲都会全部展开并加载,如下图所示,导致输入非常卡顿。
image

期待的结果 Expected result

懒加载机制应该全局生效

截屏或者录屏演示 Screenshot or screen recording presentation

如上图所示,除了第一个打开的文档,其余文档懒加载机制失效。

版本环境 Version environment

- Version: v2.0.22(我是从2.0.16版本直接升级的,并不知道中间几个版本是否存在类似问题)
- Operating System: MacOS Monterey
- Browser (if used): N/A

日志文件 Log file

N/A

更多信息 More information

No response

@88250
Copy link
Member

88250 commented Jun 20, 2022

目前动态加载不会移除已经加载过的内容,可以通过 F5 刷新缓解。

#4620

@88250 88250 closed this as completed Jun 20, 2022
@ZinYY
Copy link
Author

ZinYY commented Jun 20, 2022

F5 之后确实可以了,但问题是打开文档时,会自动加载所有内容 (除了首次打开的第一个文档)。

@88250
Copy link
Member

88250 commented Jun 20, 2022

这个我这里重现不了,方便发一下 .sy 么?

@ZinYY
Copy link
Author

ZinYY commented Jun 20, 2022

这个我这里重现不了,方便发一下 .sy 么?

我这里可以完全复现,方法是打开多个文档,此时退出思源笔记并重新打开,就会出现该情况 (即首个文档之外的其他文档动态加载失效)。

@ZinYY
Copy link
Author

ZinYY commented Jun 20, 2022

example 动态加载失效.zip
可以试试这两个文档,try1.sy以及try2.sy。打开这两个文档 (两个标签页), 点击try1这个文档后,退出并重新打开思源笔记。重新进入后发现try1的动态加载正常,而try2的动态加载失效 (此时try2内输入文字 非常卡顿)。

@88250 88250 changed the title v2.0.22 版本长文档输入卡顿 / 懒加载机制失效 重新后已经存在的页签动态加载失效 Jun 20, 2022
@88250 88250 changed the title 重新后已经存在的页签动态加载失效 重启后已经存在的页签动态加载失效 Jun 20, 2022
@88250 88250 added the Bug label Jun 20, 2022
@88250
Copy link
Member

88250 commented Jun 20, 2022

谢谢,能够重现问题了。

@88250 88250 reopened this Jun 20, 2022
@Vanessa219 Vanessa219 added this to the 2.0.23 milestone Jun 21, 2022
Vanessa219 added a commit that referenced this issue Jun 21, 2022

Verified

This commit was signed with the committer’s verified signature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants