-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
fix.尝试修复内存溢出问题 #186
Merged
Merged
fix.尝试修复内存溢出问题 #186
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Deploying with Cloudflare Pages
|
问题描述:
怀疑:
|
移除lodash,避免整个lodash库的函数都充斥在自动提示里 vue3.4在computed/watch上有性能改进,刚好也对得上书架的时钟跳动场景 替换luxon为dayjs,主要是前者屁事一堆但又没有特别的性能/体积改进 移除已经不在使用的vue-recaptcha-v3
close #187 |
最简单的解释是:一个reactive类对象(包括不限于ref/computed/watch等),会独立于组件生命周期产生/消亡时,vue就没法在其它reactive对象的dep里移除它,导致不断产生新的computed对象又不断塞进其它对象的dep数组里,且再也无法从外部清除:它只存在于其它对象的dep里。 经验:
|
虽然还是觉得compose api不能compose这个就很搞笑就是了,我怎么知道别人在composeFn里用没用ref… |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
暂时怀疑是计算时间引起的,去掉观察一阵子先