Home > widget-integration > FilterStorageHelper > isQuotaExhausted

FilterStorageHelper.isQuotaExhausted() method

Whether a write has failed even after eviction.

Callers that persist large, regenerable payloads should check this before writing, so a saturated origin does not turn into a re-fetch-and-re-cache loop on every page view.

Signature:

isQuotaExhausted(): boolean;

Returns:

boolean

True once storage is known to be full and unreclaimable

Example

Skip caching a heavy template when there is no room for it:

if (this.storageHelper.isQuotaExhausted()) return;
this.storageHelper.setLocalStorage(cacheKey, template);