element-plus: [Bug Report] Maximum recursive updates exceeded in component ()
Element Plus version
1.2.0-beta.5
OS/Browsers version
none
Vue version
3.2.24
Reproduction Link
https://github.com/SepVeneto/reproduction-jest-element-plus.git
Steps to reproduce
- npm i
- npm run test:unit
What is Expected?
no warning: Maximum recursive updates exceeded in component <ElSelect>(<ElPopper>)
What is actually happening?
Maximum recursive updates exceeded in component <ElSelect>(<ElPopper>)
In fact, not only el-select but also other components which use el-popper, when use jest test, throw this warnning.
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 21
- Comments: 25 (3 by maintainers)
Same issue here when the el-option without slot is more than 100 and try to search for option that doesn’t exist
Reproduction Link
just updated my @vue/test-utils to the latest version and the issue is gone
Same issue with all components having popper
It’s making the components tests really slow!
[Vue warn]: Maximum recursive updates exceeded in component <ElDropdown>. 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.@sxzz
hi~,
I repackage the EleSelect Component 。 like:
I use jest to test my component like
But some unexpected exceptions happened!
I can use shallowMount to avoid mistakes ,but,What makes me wonder is why repeated rendering is triggered 。
Maximum recursive updates exceeded in componentmaybe ,its a same problem 。