Replies: 2 comments 6 replies
-
@ValB2021 What version? I may need a CodePen as this doesn't look much different than some of the examples. |
Beta Was this translation helpful? Give feedback.
-
Seems like this is an issue with understanding Vue. When you do certain things in a function related to the data it's using, then you're telling Vue to re-run the render if that data changes. You can remove your Basically, anything returned in: data () {
return {
date: '',
version: QCalendar.version,
counterFoo: 0
}
}, will get a |
Beta Was this translation helpful? Give feedback.
-
Hello!
I’m working with slots to change the appearance and functions of my QCalendar.
As soon as a method is called from the slot which increments a counter or calls an array.push(), I get this error message:
[Vue warn]: You may have an infinite update loop in a component render function.
found in
—>
at src/components/QuasarCalendarTest.vue
at src/pages/Dashboard.vue
at src/layouts/MainLayout.vue
at src/App.vue
Because of the rerender, the displayed month is run through over and over an infinite number of times from start to finish.
How can the infinite loop be avoided?
I am grateful for any assistance.:)
VB
To clarify my request here is the source code:
Beta Was this translation helpful? Give feedback.
All reactions