Match-id-4b48c0707ad2dbede26afa9963f55f96cba569d8
This commit is contained in:
parent
b415fd3346
commit
f50cefc58e
|
@ -27,7 +27,7 @@ export function JSXElement(type, key, ref, vNode, props, source: Source | null)
|
||||||
}
|
}
|
||||||
|
|
||||||
function isValidKey(key) {
|
function isValidKey(key) {
|
||||||
const keyArray = ['key', 'ref', '__source'];
|
const keyArray = ['key', 'ref', '__source', '__self'];
|
||||||
return !keyArray.includes(key);
|
return !keyArray.includes(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ export function clearVNode(vNode: VNode) {
|
||||||
vNode.belongClassVNode = null;
|
vNode.belongClassVNode = null;
|
||||||
if (window.__HORIZON_DEV_HOOK__) {
|
if (window.__HORIZON_DEV_HOOK__) {
|
||||||
const hook = window.__HORIZON_DEV_HOOK__;
|
const hook = window.__HORIZON_DEV_HOOK__;
|
||||||
hook.delete(vNode);
|
hook.deleteVNode(vNode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue