TanStackT
TanStack3y ago
16 replies
living-lavender

Set column filter state in the url

Hello guys, just trying to get the column filter state to and from the url.

Is there a way to do this without state syncing a useState hook? Anytime I try to pass the url params as the state when using useReactTable I get an infinite loop.

Also I have used zod to validate the URL params but even when I don’t use zod and i just cast them I get the same issue. I don’t think that’s the problem.

Any advice will be very helpful! Let me know if you need any code samples! Thanks for your time!
Was this page helpful?