-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
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,
});taro-28taro-28
Metadata
Metadata
Assignees
Labels
No labels