Match-id-27a1c55c860d578ac4d4f31e72017ec0b4077239
This commit is contained in:
commit
8e18918119
|
@ -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