Docs
resource() tells Eidos which GETs to cache. Supporting feature — Save is still the hero.
Next: When things break →import { resource } from '@sweidos/eidos'
export const products = resource('/api/products', { offline: true, // cache + SW interception})
const list = await products.json<Product[]>()offline: true defaults to stale-while-revalidate (fast + refresh in background).products.fetch(), .json(), .prefetch(), .invalidate().import { resourcePattern } from '@sweidos/eidos'
export const productPages = resourcePattern('/api/products/*', { offline: true,})Patterns are for Service Worker interception — use invalidate() to clear matches. See Recipes for live examples.