Skip to content

Commit 0f37aea

Browse files
committed
experimental: always enable listen to children
1 parent ecba977 commit 0f37aea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/core/src/parsers/nomParsers/BindTargetNomParsers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ const P_FirstMetadataPathPart: Parser<UnvalidatedBindTargetDeclaration> = P.or(
4141
P.sequenceMap(firstPart => {
4242
return {
4343
storagePath: undefined,
44-
listenToChildren: false,
44+
listenToChildren: true,
4545
storageProp: firstPart,
4646
} satisfies UnvalidatedBindTargetDeclaration;
4747
}, P_BracketMetadataPathPart.atLeast(1)),
4848
P.sequenceMap(
4949
(firstPart, bracketPath) => {
5050
return {
5151
storagePath: undefined,
52-
listenToChildren: false,
52+
listenToChildren: true,
5353
storageProp: [firstPart, ...bracketPath],
5454
} satisfies UnvalidatedBindTargetDeclaration;
5555
},

tests/parserTests/BindTargetParser.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function generateTestCase(combination: BindTargetCombination): TestCase {
107107
storageType: localScopeBindTarget.storageType,
108108
storagePath: localScopeBindTarget.storagePath,
109109
storageProp: localScopeBindTarget.storageProp.concat(combination.storageProp),
110-
listenToChildren: false,
110+
listenToChildren: true,
111111
},
112112
};
113113
}
@@ -118,7 +118,7 @@ function generateTestCase(combination: BindTargetCombination): TestCase {
118118
storageType: BindTargetStorageType.GLOBAL_MEMORY,
119119
storagePath: '',
120120
storageProp: combination.storageProp,
121-
listenToChildren: false,
121+
listenToChildren: true,
122122
},
123123
};
124124
}
@@ -131,7 +131,7 @@ function generateTestCase(combination: BindTargetCombination): TestCase {
131131
: BindTargetStorageType.FRONTMATTER,
132132
storagePath: hasStoragePath ? (combination.storagePath as string) : TEST_FILE,
133133
storageProp: combination.storageProp,
134-
listenToChildren: false,
134+
listenToChildren: true,
135135
},
136136
};
137137
}

0 commit comments

Comments
 (0)