Skip to content

Commit d8db360

Browse files
committed
modified: index.ts
1 parent 94230ee commit d8db360

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ export default function (
1515
siblings: keySiblings = "siblings",
1616
} = {},
1717
) {
18-
const atlas = toReactive(computed(getAtlas)),
19-
configurable = true,
20-
leaves = computed(getLeaves),
18+
const configurable = true,
2119
properties = {
2220
[keyBranch]: {
2321
get(this: Record<string, unknown>) {
@@ -51,6 +49,10 @@ export default function (
5149
},
5250
value = isReactive(tree) ? tree : reactive(tree);
5351

52+
const leaves = computed(getLeaves);
53+
54+
const atlas = toReactive(computed(getAtlas));
55+
5456
function getLeaves() {
5557
return getSiblingLeaves({ value });
5658
}

0 commit comments

Comments
 (0)