All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.react-utils.QueryClientProvider.queryClient.js.map Maven / Gradle / Ivy

Go to download

A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.

There is a newer version: 4.12.3
Show newest version
{"version":3,"file":"queryClient.js","names":["QueryClient","QueryCache","keepPreviousData","DEFAULT_STALE_TIME","queryClient","queryCache","defaultOptions","queries","refetchOnWindowFocus","staleTime","placeholderData"],"sources":["../../../src/react-utils/QueryClientProvider/queryClient.js"],"sourcesContent":["import {\n  QueryClient,\n  QueryCache,\n  keepPreviousData,\n} from \"@tanstack/react-query\";\n\n// eslint-disable-next-line @bigbinary/neeto/use-webpack-alias\nimport { DEFAULT_STALE_TIME } from \"../../constants\";\n\nconst queryClient = new QueryClient({\n  queryCache: new QueryCache(),\n  defaultOptions: {\n    queries: {\n      refetchOnWindowFocus: false,\n      staleTime: DEFAULT_STALE_TIME,\n      placeholderData: keepPreviousData,\n    },\n  },\n});\n\nexport default queryClient;\n"],"mappings":"AAAA,SACEA,WAAW,EACXC,UAAU,EACVC,gBAAgB,QACX,uBAAuB;;AAE9B;AACA,SAASC,kBAAkB;AAE3B,IAAMC,WAAW,GAAG,IAAIJ,WAAW,CAAC;EAClCK,UAAU,EAAE,IAAIJ,UAAU,CAAC,CAAC;EAC5BK,cAAc,EAAE;IACdC,OAAO,EAAE;MACPC,oBAAoB,EAAE,KAAK;MAC3BC,SAAS,EAAEN,kBAAkB;MAC7BO,eAAe,EAAER;IACnB;EACF;AACF,CAAC,CAAC;AAEF,eAAeE,WAAW","ignoreList":[]}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy