package.cjs.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":["_reactQuery","require","_constants","queryClient","QueryClient","queryCache","QueryCache","defaultOptions","queries","refetchOnWindowFocus","staleTime","DEFAULT_STALE_TIME","placeholderData","keepPreviousData","_default","exports"],"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,IAAAA,WAAA,GAAAC,OAAA;AAOA,IAAAC,UAAA,GAAAD,OAAA;AADA;;AAGA,IAAME,WAAW,GAAG,IAAIC,uBAAW,CAAC;EAClCC,UAAU,EAAE,IAAIC,sBAAU,EAAE;EAC5BC,cAAc,EAAE;IACdC,OAAO,EAAE;MACPC,oBAAoB,EAAE,KAAK;MAC3BC,SAAS,EAAEC,6BAAkB;MAC7BC,eAAe,EAAEC;IACnB;EACF;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAEYX,WAAW;AAAAY,OAAA,cAAAD,QAAA"}