How to filter table based on query params - TanStack