function AppConfig() { const { data: config, isStale, refetch, invalidate } = useCachedQuery({ db: db.instance, store: 'queryCache', key: 'app-config', fetchFn: () => api.get('config').json(), strategy: CACHE_STRATEGIES.STALE_WHILE_REVALIDATE, staleTime: 300000 // 5 min }); return (
{isStale &&

Mise à jour en cours...

}
); }