Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(vdom): add dev check for unexpected vnode #1950

Merged
merged 1 commit into from
Oct 14, 2019

Conversation

manucorporat
Copy link
Contributor

Screenshot 2019-10-14 at 21 21 05

Screenshot 2019-10-14 at 21 20 58

@manucorporat manucorporat merged commit 358e925 into master Oct 14, 2019
@adamdbradley adamdbradley deleted the add-wrong-vnode-check branch October 15, 2019 22:06
@@ -30,6 +31,12 @@ export const h = (nodeName: any, vnodeData: any, ...children: d.ChildType[]): d.
} else if (child != null && typeof child !== 'boolean') {
if (simple = typeof nodeName !== 'function' && !isComplexType(child)) {
child = String(child);

} else if (BUILD.isDev && child.$flags$ === undefined) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible child could have been a string?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants