package.cjs.react-utils.useQueryParams.useQueryParams.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":"useQueryParams.js","names":["_reactRouterDom","require","_general","useQueryParams","options","location","useLocation","parseQueryParams","search","_default","exports"],"sources":["../../../../src/react-utils/useQueryParams/useQueryParams.js"],"sourcesContent":["import { useLocation } from \"react-router-dom\";\nimport { parseQueryParams } from \"utils/general\";\n\nconst useQueryParams = options => {\n const location = useLocation();\n\n return parseQueryParams(location.search, options);\n};\n\nexport default useQueryParams;\n"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAEA,IAAME,cAAc,GAAG,SAAjBA,cAAcA,CAAGC,OAAO,EAAI;EAChC,IAAMC,QAAQ,GAAG,IAAAC,2BAAW,EAAC,CAAC;EAE9B,OAAO,IAAAC,yBAAgB,EAACF,QAAQ,CAACG,MAAM,EAAEJ,OAAO,CAAC;AACnD,CAAC;AAAC,IAAAK,QAAA,GAAAC,OAAA,cAEaP,cAAc","ignoreList":[]}