CacheEntry
CacheEntryStatus
| Value | Meaning |
|---|---|
idle | No fetch has been attempted |
loading | A fetch is in progress |
success | Data is available (may be stale) |
error | Last fetch failed |
CachedError
createCacheEntry
Creates a new cache entry with sensible defaults:data is provided, updatedAt is set to Date.now(). Otherwise updatedAt = 0.
isFresh
true when:
isErrorExpired
true when:
kweri.query() call will retry the network request.
categorizeError
CachedError: