UNPKG

rx-query

Version:
27 lines 716 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getQueryConfig = exports.setQueryConfig = void 0; const DEFAULT_QUERY_CONFIG = { retries: 3, retryDelay: (n) => (n + 1) * 1000, refetchOnWindowFocus: true, refetchOnReconnect: true, refetchInterval: Infinity, staleTime: 0, cacheTime: 300000, keepPreviousData: false, mutator: (data) => data, }; let config = DEFAULT_QUERY_CONFIG; function setQueryConfig(override) { config = { ...config, ...override, }; } exports.setQueryConfig = setQueryConfig; function getQueryConfig() { return config; } exports.getQueryConfig = getQueryConfig; //# sourceMappingURL=config.js.map