File tree 2 files changed +3
-4
lines changed
packages/runtime-vapor/src
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,7 @@ export const createFor = (
59
59
60
60
const instance = getCurrentInstance ( )
61
61
if ( ! instance ) {
62
- // FIXME should use error handling
63
- console . warn ( 'createFor() should be called in Vue Component' )
62
+ warn ( 'createFor() should be called in Vue Component' )
64
63
}
65
64
66
65
const directivesList : DirectiveBindingsMap [ ] = [ ]
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
10
10
withDirectives ,
11
11
} from './directives'
12
12
import { getCurrentInstance } from './component'
13
+ import { warn } from './warning'
13
14
14
15
type BlockFn = ( ) => Block
15
16
@@ -34,8 +35,7 @@ export const createIf = (
34
35
35
36
const instance = getCurrentInstance ( )
36
37
if ( ! instance ) {
37
- // FIXME should use error handling
38
- console . warn ( 'createIf() can only be used inside setup()' )
38
+ warn ( 'createIf() can only be used inside setup()' )
39
39
}
40
40
41
41
// TODO: SSR
You can’t perform that action at this time.
0 commit comments