Thank you for the amazing hook, it was so fast to get this up and running with my table.
Since I'm using client-side rendering for the page I had to make a few changes to the example in the docs. Perhaps the docs can update to include a client-side example?
Here's how I got it working:
import { usePathname, useRouter, useSearchParams } from "next/navigation";
const router = useRouter();
const stateAndOnChanges = useTableSearchParams({
query: useSearchParams(),
pathname: usePathname(),
replace: router.replace,
});
Thank you for the amazing hook, it was so fast to get this up and running with my table.
Since I'm using client-side rendering for the page I had to make a few changes to the example in the docs. Perhaps the docs can update to include a client-side example?
Here's how I got it working: