feat: allow bypassing indexedb cache

This commit is contained in:
Shivam Mishra
2025-05-13 19:00:30 +05:30
parent 1899a31416
commit f07a5215cf
3 changed files with 10 additions and 3 deletions
+8 -1
View File
@@ -1,7 +1,14 @@
/* global axios */
import CacheEnabledApiClient from './CacheEnabledApiClient';
// import ApiClient from './ApiClient';
import ApiClient from './ApiClient';
class Inboxes extends CacheEnabledApiClient {
// eslint-disable-next-line no-underscore-dangle
const BaseClass = window.__WOOT_ISOLATED_SHELL__
? ApiClient
: CacheEnabledApiClient;
class Inboxes extends BaseClass {
constructor() {
super('inboxes', { accountScoped: true });
}