We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bff94f3 commit e6dcd21Copy full SHA for e6dcd21
src/core/observer/scheduler.js
@@ -81,8 +81,11 @@ function runSchedulerQueue (queue: Array<Watcher>) {
81
circular[id] = (circular[id] || 0) + 1
82
if (circular[id] > config._maxUpdateCount) {
83
warn(
84
- 'You may have an infinite update loop for watcher ' +
85
- 'with expression "' + watcher.expression + '"',
+ 'You may have an infinite update loop ' + (
+ watcher === watcher.vm._watcher
86
+ ? `in a component render function.`
87
+ : `in watcher with expression "${watcher.expression}"`
88
+ ),
89
watcher.vm
90
)
91
break
0 commit comments