Bug Type: Component
Environment
- Vue Version:
3.2.41
- Element Plus Version:
2.2.36
- Browser / OS:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
- Build Tool:
Vite
Reproduction
Related Component
el-table
el-table-column
el-scrollbar
Reproduction Link
Element Plus Playground
Steps to reproduce
有动态插槽的情况下,更新table的data后,有警告
What is Expected?
无警告
What is actually happening?
Maximum recursive updates exceeded in component . This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.
Additional comments
(empty)
8条答案
按热度按时间pod7payv1#
I am using
el-select
to generate this warnings8vozzvw2#
I am using
el-select
to generate this warningeg:
mec1mxoz3#
I also encountered this error when i using
el-table
+el-select
.But i can't reproduce this warning on condesanbox.
ecbunoof4#
I also encountered this error when i using
Transition
+el-select
.And I think it might have something to do with Vite.
w51jfk4q5#
I am using
el-select
to generate this warningI wrapped the
el-select
again and it worked surprisingly well...2hh7jdfx6#
@wjw-gavin 我也遇到了,你是怎么解决的?
fdbelqdn7#
@wjw-gavin 我也遇到了,你是怎么解决的?
我直接使用会报这个警告,但是我二次封装
el-select
后就莫名的好了,不报警告了。x8goxv8g8#
@wjw-gavin 我也遇到了,你是怎么解决的?
我直接使用会报这个警告,但是我二次封装
el-select
后就莫名的好了,不报警告了。我尝试了,确实可以,一开始排查实在找不到哪里写的有问题,最终排查到到el-option, 只要用了v-for循环就会报错误(直接写option选项是正常的),综合其他人的描述,应该是在组合使用组件,且多层循环的情况下发生。
以下简单处理了二次封装: