MCPcopy
hub / github.com/vuejs/composition-api / warn

Function warn

src/utils/utils.ts:101–105  ·  view source on GitHub ↗
(msg: string, vm?: Vue)

Source from the content-addressed store, hash-verified

99}
100
101export function warn(msg: string, vm?: Vue) {
102 const Vue = getRegisteredVueOrDefault()
103 if (!Vue || !Vue.util) console.warn(`[vue-composition-api] ${msg}`)
104 else Vue.util.warn(msg, vm)
105}
106
107export function logError(err: Error, vm: Vue, info: string) {
108 if (__DEV__) {

Callers 15

installFunction · 0.90
setVueConstructorFunction · 0.90
functionApiInitFunction · 0.90
setFunction · 0.90
toRefsFunction · 0.90
shallowReactiveFunction · 0.90
reactiveFunction · 0.90
readonlyFunction · 0.90
shallowReadonlyFunction · 0.90
setFunction · 0.90
getCurrentInstanceForFnFunction · 0.90
createSlotProxyFunction · 0.90

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…