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 c6217b4 commit ff97be1Copy full SHA for ff97be1
packages/runtime-core/src/apiWatch.ts
@@ -187,12 +187,13 @@ function doWatch(
187
}
188
} else {
189
getter = NOOP
190
- warn(
191
- `Invalid watch source: `,
192
- source,
193
- `A watch source can only be a getter/effect function, a ref, ` +
194
- `a reactive object, or an array of these types.`
195
- )
+ __DEV__ &&
+ warn(
+ `Invalid watch source: `,
+ source,
+ `A watch source can only be a getter/effect function, a ref, ` +
+ `a reactive object, or an array of these types.`
196
+ )
197
198
199
if (cb && deep) {
0 commit comments