chore: Format files

This commit is contained in:
haiqin 2024-01-24 15:33:26 +08:00
parent 4de52d8b6e
commit 04b12cc423
1 changed files with 17 additions and 14 deletions

View File

@ -61,18 +61,21 @@ export function getOrCreateChildRNode(node: RProxyNode<any>, key: string | symbo
// root: node.root, // root: node.root,
// }); // });
child = new RProxyNode(() => { child = new RProxyNode(
() => {
const rootRNode = getRootRNode(node); const rootRNode = getRootRNode(node);
// 依赖根 // 依赖根
rootRNode.get(); rootRNode.get();
return getRNodeVal(node)[key]; return getRNodeVal(node)[key];
}, { },
{
isComputed: true, isComputed: true,
parent: node, parent: node,
key: key, key: key,
root: node.root, root: node.root,
}); }
);
} }
child.track(); child.track();