Match-id-27a1c55c860d578ac4d4f31e72017ec0b4077239

This commit is contained in:
* 2022-08-17 14:26:36 +08:00 committed by *
commit 8e18918119
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ export function JSXElement(type, key, ref, vNode, props, source: Source | null)
}
function isValidKey(key) {
const keyArray = ['key', 'ref', '__source'];
const keyArray = ['key', 'ref', '__source', '__self'];
return !keyArray.includes(key);
}

View File

@ -98,7 +98,7 @@ export function clearVNode(vNode: VNode) {
vNode.belongClassVNode = null;
if (window.__HORIZON_DEV_HOOK__) {
const hook = window.__HORIZON_DEV_HOOK__;
hook.delete(vNode);
hook.deleteVNode(vNode);
}
}