We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb69014 commit 920aee0Copy full SHA for 920aee0
lib/DataStoreSerializer.ts
@@ -105,7 +105,7 @@ export class DataStoreSerializer {
105
const filteredStores = this.stores.filter(s => typeof stores === "function" ? stores(s.id) : stores.includes(s.id));
106
for(const storeInst of filteredStores) {
107
const encoded = Boolean(useEncoding && storeInst.encodingEnabled() && storeInst.encodeData?.[1]);
108
- const rawData = storeInst.memoryCache ? storeInst.getData() : await storeInst.loadData();
+ const rawData = storeInst.memoryCache ? (storeInst as DataStore<{}, true>).getData() : await storeInst.loadData();
109
const data = encoded
110
? await storeInst.encodeData)
111
: JSON.stringify(rawData);
0 commit comments