Skip to content

Commit eaa5f37

Browse files
committed
add cached flag to CubeStoreResultWrapper
1 parent 2d38fe7 commit eaa5f37

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/cubejs-backend-native/js/CubeStoreResultWrapper.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ export class CubeStoreResultWrapper {
55

66
private cache: any;
77

8+
public cached: Boolean = false;
9+
810
public constructor(private readonly nativeReference: any) {
911
this.proxy = new Proxy(this, {
1012
get: (target, prop: string | symbol) => {
@@ -66,6 +68,7 @@ export class CubeStoreResultWrapper {
6668
private getArray(): ResultRow[] {
6769
if (!this.cache) {
6870
this.cache = getCubestoreResult(this.nativeReference);
71+
this.cached = true;
6972
}
7073
return this.cache;
7174
}

0 commit comments

Comments
 (0)