Skip to content

Commit 6493504

Browse files
author
Oleksandr Dzhychko
committed
chore(vue-model-api): comment how Vue-Refs are triggered after setting values in ReactiveINodeJS
1 parent 2ab9d9f commit 6493504

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

vue-model-api/src/internal/ReactiveINodeJS.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ export class ReactiveINodeJS implements INodeJS {
143143
index: number,
144144
concept: IConceptJS | undefined,
145145
): INodeJS {
146+
// The related Vue-`Ref` does not need to be triggered.
147+
// It will be updated through the changed listener of the branch.
146148
const unreactiveNode = this.unreactiveNode.addNewChild(
147149
role,
148150
index,
@@ -180,6 +182,8 @@ export class ReactiveINodeJS implements INodeJS {
180182
}
181183

182184
setReferenceTargetNode(role: string, target: INodeJS | undefined): void {
185+
// The related Vue-`Ref` does not need to be triggered.
186+
// It will be updated through the changed listener of the branch.
183187
return this.unreactiveNode.setReferenceTargetNode(
184188
role,
185189
unwrapReactiveINodeJS(target),
@@ -190,6 +194,8 @@ export class ReactiveINodeJS implements INodeJS {
190194
role: string,
191195
target: INodeReferenceJS | undefined,
192196
): void {
197+
// The related Vue-`Ref` does not need to be triggered.
198+
// It will be updated through the changed listener of the branch.
193199
this.unreactiveNode.setReferenceTargetRef(role, target);
194200
}
195201

@@ -209,6 +215,8 @@ export class ReactiveINodeJS implements INodeJS {
209215
}
210216

211217
setPropertyValue(role: string, value: string | undefined): void {
218+
// The related Vue-`Ref` does not need to be triggered.
219+
// It will be updated through the changed listener of the branch.
212220
this.unreactiveNode.setPropertyValue(role, value);
213221
}
214222

0 commit comments

Comments
 (0)