You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
父组件注入响应式数据到子组件,子组件修改响应式数据,父组件展示此响应式数据,子组件修改时触发渲染,由于slot中存在子组件,造成子组件又渲染,子组件又修改了响应式数据,使得死循环。不知道算不算问题,不算的话直接关掉了
Reproduction
https://stackblitz.com/edit/vitejs-vite-tu3tor?file=src%2FComp.vue,src%2FComp1.vue&terminal=dev
Steps to reproduce
开发模式下修改Comp1.vue的all.value.push("1")的push值即可,可以看到多了很多一样的数据
修改可以把Comp.vue的{{all}}注释掉
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: