Slide 79
Slide 79 text
More customization for fetching:
// core/fetcher.ts
const [createFetcherStore ] = nanoquery({
fetcher: (...keys: string[]) => fetch(keys.join('')).then((r) => r.json()),
refetchInterval : 30000, // revalidate cache on an interval, ms
refetchOnFocus : true, // revalidate cache when the window focuses
refetchOnReconnect : true, // revalidate cache when network connection restores
});
79
@evilmartians