提交 953cbb47 编写于 作者: G Guillaume Chau

fix: shouldn't serialize VNodes, fixes #857

上级 38f183d9
......@@ -187,6 +187,8 @@ function replacer (key) {
return encodeCache.cache(val, () => getCustomInstanceDetails(val))
} else if (typeof val.render === 'function') {
return encodeCache.cache(val, () => getCustomComponentDefinitionDetails(val))
} else if (val.__proto__ && val.__proto__.constructor && val.__proto__.constructor.name === 'VNode') {
return `[native VNode <${val.tag}>]`
}
} else if (Number.isNaN(val)) {
return NAN
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册