MCPcopy Create free account
hub / github.com/TanStack/db / getStorageSize

Function getStorageSize

packages/db/src/local-storage.ts:430–433  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

428 * @returns The approximate size in bytes of the stored collection data
429 */
430 const getStorageSize: GetStorageSizeFn = (): number => {
431 const data = storage.getItem(config.storageKey)
432 return data ? new Blob([data]).size : 0
433 }
434
435 /*
436 * Create wrapper handlers for direct persistence operations that perform actual storage operations

Callers

nothing calls this directly

Calls 1

getItemMethod · 0.80

Tested by

no test coverage detected