UNPKG

@matthew.ngo/react-filter-pilot

Version:

Powerful filtering, pagination, and sorting for React with TanStack Query integration

3 lines 676 B
'use strict';var navigation=require('next/navigation');/* @matthew.ngo/react-filter-pilot - MIT License */ var m=Object.defineProperty;var e=(s,t)=>m(s,"name",{value:t,configurable:true});function i(){const s=navigation.useSearchParams(),t=navigation.useRouter(),o=navigation.usePathname();return {getParams:e(()=>{const r=new URLSearchParams;return Array.from(s.entries()).forEach(([a,n])=>{r.set(a,n);}),r},"getParams"),setParams:e(r=>{const a=r.toString(),n=a?`?${a}`:"";t.replace(`${o}${n}`);},"setParams")}}e(i,"useNextJsAppCustomUrlHandler");exports.useNextJsAppCustomUrlHandler=i;//# sourceMappingURL=nextJsAppCustom.cjs.map //# sourceMappingURL=nextJsAppCustom.cjs.map