Initial commit

This commit is contained in:
mats committed 2026-10-19 16:04:17 +02:00
commit afed023152
8152 files changed
+2086461

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
Object.defineProperty(exports, '__esModule', { value: true });
var useSwr = require('../use-swr-guqrv3k1.js');
var _internal_index = require('../_internal/index.js');
const immutable = (useSWRNext)=>(key, fetcher, config)=>{
// Always override all revalidate options.
config.revalidateOnFocus = false;
config.revalidateIfStale = false;
config.revalidateOnReconnect = false;
config.refreshInterval = 0;
return useSWRNext(key, fetcher, config);
};
const useSWRImmutable = _internal_index.withMiddleware(useSwr.useSWR, immutable);
exports.default = useSWRImmutable;
exports.immutable = immutable;