package.react-utils.QueryClientProvider.queryClient.js.map Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
{"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":[]}