Comments (6)
@wcldyx 这是因为在开发环境会在元素上定义 __vnode
,公开给 vue-devtools
使用。生产环境不会内存溢出
core/packages/runtime-core/src/renderer.ts
Lines 697 to 706 in 3bf34b7
from core.
@wcldyx
类似的问题已经有人提了好多次了。
from core.
第一个问题的复现是把 mode 和 include 都去掉吗?
<Transition>
<KeepAlive>
<A v-if="show" />
</KeepAlive>
</Transition>
把 mode 和 include 都去掉后,不停切换并不存在内存泄漏
from core.
第一个问题的复现是把 mode 和 include 都去掉吗?
<Transition> <KeepAlive> <A v-if="show" /> </KeepAlive> </Transition>
两个问题都是在有include 的情况下会出现内存溢出
from core.
@wcldyx 这是因为在开发环境会在元素上定义
__vnode
,公开给vue-devtools
使用。生产环境不会内存溢出core/packages/runtime-core/src/renderer.ts
Lines 697 to 706 in 3bf34b7
6啊,你是怎么定位到这个问题的
from core.
Leave it open because the second issue has not been fixed
from core.
Related Issues (20)
- Set value to defineModel twice in child component not working as intended HOT 3
- 开发环境无异常,打包后预览,出现空白页 HOT 2
- 我们无法处理没有可靠复现的问题。请在能提供复现代码后再开 issue。 HOT 1
- jsx内联样式设置失败 HOT 2
- feat: createApp support lifetimes hooks HOT 6
- Runtime warnings on type of Prop when using keyof and extends since 3.24
- @after-leave error in <Transition> HOT 1
- TypeError: Cannot convert object to primitive value HOT 2
- Hydration mismatch when using with JSX HOT 2
- Type-only `defineProps` compiles global types incorrectly
- Setting template ref function handler with v-for and inline event handler (while passing element from v-for) causes ref to recall its handler every rerender HOT 3
- Get a bug of 'Unhandled error during execution of scheduler flush. This is likely a Vue internals bug.' HOT 1
- v-bind() in CSS + Teleport doesn't work (another edge case)
- Spurious component updates when v-model is defined in parent, but not used in child. HOT 4
- hook onMounted has been called when app unmount HOT 1
- Unhandled error during execution of render function HOT 6
- ref typing converts null type to unknown when strictNullChecks is false HOT 3
- v-bind 是不是有bug HOT 1
- Error with createSSRApp when Using JSX/TSX HOT 2
- Error codes in production not passed to error handlers as described HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.