Skip to content

Commit 84609ec

Browse files
committed
verified
1 parent 7380422 commit 84609ec

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/core/src/shared/utilities/resourceCache.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,8 @@ export abstract class CachedResource<V> {
105105
}
106106

107107
private async updateCache(cache: GlobalStateSchema<any> | undefined, resource: Resource<any>) {
108-
// TODO: undefined?
109-
110108
await globals.globalState.update(this.key, {
111-
...cache,
109+
...(cache ? cache : this.readCacheOrDefault()),
112110
resource: resource,
113111
})
114112
}

0 commit comments

Comments
 (0)