MCPcopy Create free account
hub / github.com/TruthHun/BookStack / checkRootConstraints

Function checkRootConstraints

static/vuejs/vue.esm.js:7806–7821  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

7804 }
7805
7806 function checkRootConstraints (el) {
7807 if (process.env.NODE_ENV !== 'production') {
7808 if (el.tag === 'slot' || el.tag === 'template') {
7809 warnOnce(
7810 "Cannot use <" + (el.tag) + "> as component root element because it may " +
7811 'contain multiple nodes.'
7812 );
7813 }
7814 if (el.attrsMap.hasOwnProperty('v-for')) {
7815 warnOnce(
7816 'Cannot use v-for on stateful component root element because ' +
7817 'it renders multiple elements.'
7818 );
7819 }
7820 }
7821 }
7822
7823 // tree management
7824 if (!root) {

Callers 1

parseFunction · 0.70

Calls 1

warnOnceFunction · 0.70

Tested by

no test coverage detected