Match-id-4b48c0707ad2dbede26afa9963f55f96cba569d8

This commit is contained in:
* 2022-08-17 10:13:19 +08:00 committed by *
parent b415fd3346
commit f50cefc58e
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);
}
}