ismail9k / vue3-carousel

Vue 3 carousel component
https://ismail9k.github.io/vue3-carousel/
MIT License
661 stars 164 forks source link

Maximum recursive updates exceeded in the component <Carousel>. #191

Closed PhinehasSersah closed 1 year ago

PhinehasSersah commented 1 year ago

Getting this warn message trying to use the Carousel component -- runtime-core.esm-bundler.js:38 [Vue warn]: 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.

lmssieh commented 1 year ago

got the same error because I made a typo in the v-for loop and was looping over undefined.

PhinehasSersah commented 1 year ago

The data that v-for loops over is async data, could it be the case? maybe when the data is in a pending state

TheYakuzo commented 1 year ago

You need to set a "v-if" on Carousel component on the data you loop on

ismail9k commented 1 year ago

Closing this issue since it's fixed in the latest version.