You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Return array of elements from render function in functional component.
What is Expected?
Multiple root nodes seems to be dissallowed in Vue2 everywhere but not here.
I think that the correct solution would be to throw appropriate error to console and avoid returning undefined. Or is that designed logic and this should be handled by the engine as it was in older versions? You decide.
What is actually happening?
undefined is rendered as a result and no correct error is thrown to the console.
The text was updated successfully, but these errors were encountered:
Vue.js version
2.1.5, 2.1.6
Reproduction Link
[2.1.4] https://jsfiddle.net/uriziel01/kx1yuu3a/ [working]
[2.1.5] https://jsfiddle.net/uriziel01/kx1yuu3a/3/ [broken]
Steps to reproduce
Return array of elements from render function in functional component.
What is Expected?
Multiple root nodes seems to be dissallowed in Vue2 everywhere but not here.
I think that the correct solution would be to throw appropriate error to console and avoid returning
undefined
. Or is that designed logic and this should be handled by the engine as it was in older versions? You decide.What is actually happening?
undefined
is rendered as a result and no correct error is thrown to the console.The text was updated successfully, but these errors were encountered: