@tokens-studio/sdk
Version:
The official SDK for Tokens Studio
66 lines • 1.4 kB
JavaScript
import { ApolloCache } from '@apollo/client/core/index.js';
const emptyCacheObj = {};
export class VoidCache extends ApolloCache {
read(_options) {
return null;
}
write(_options) {
return undefined;
}
diff(_options) {
return {};
}
watch(_watch) {
return () => { };
}
async reset() { }
evict(_options) {
return false;
}
restore(_data) {
return this;
}
extract(_optimistic) {
return emptyCacheObj;
}
removeOptimistic(_id) { }
batch(_options) {
return undefined;
}
performTransaction(_update, _optimisticId) { }
recordOptimisticTransaction(_transaction, _optimisticId) { }
transformDocument(document) {
return document;
}
transformForLink(document) {
return document;
}
identify(_object) {
return undefined;
}
gc() {
return [];
}
modify(_options) {
return false;
}
readQuery(_options, _optimistic) {
return null;
}
readFragment(_options, _optimistic) {
return null;
}
writeQuery(_opts) {
return undefined;
}
writeFragment(_opts) {
return undefined;
}
updateQuery(_options, _update) {
return null;
}
updateFragment(_options, _update) {
return null;
}
}
//# sourceMappingURL=cache.js.map