Skip to content

Commit 30a5e61

Browse files
patinthehatPatrick
authored andcommitted
fix data var tracking call to watch()
1 parent 12db2ca commit 30a5e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/VueRay.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class VueRay extends Ray {
3838
});
3939
};
4040

41-
this.component.trackingStops[name] = this.watch(`$data.${name}`, onTrackedUpdate, { deep: true });
41+
this.component.trackingStops[name] = this.watch(() => this.component[name], onTrackedUpdate, { deep: true });
4242
}
4343
}
4444

0 commit comments

Comments
 (0)