Skip to content

Commit 5e1d03c

Browse files
authored
Correct @cached example
1 parent fc0036b commit 5e1d03c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

guides/release/in-depth-topics/autotracking-in-depth.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,8 @@ class Photo {
378378

379379
@cached
380380
get aspectRatio() {
381-
return getValue(this.#aspectRatioCache);
381+
count++;
382+
return this.width / this.height;
382383
}
383384
}
384385

0 commit comments

Comments
 (0)