简体   繁体   中英

VueJS - Infinite update loop in a component render function

Currently I have the following fiddle:

jsfiddle.net/rrathatha/jqsvzgpo/7/ (some bits removed for ease)

When testing I get the following error:

"you may have an infinite update loop in a component render function"

I'm not sure how to resolve the issue as I am new to vue so any help apprecitated.

Thanks

You should not mutate previousRating :

<div v-if="key !== 0 && rating(group[key-1].tags) !== rating(entry.tags)" style="padding-bottom: 23px;"></div>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM